Use '0' instead of NULL
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
std::vector<ImportEngine*> * KissCount::_importEngines;
|
||||
std::vector<ExportEngine*> * KissCount::_exportEngines;
|
||||
|
||||
KissCount::KissCount(const char* bdd_filename) : _user(NULL)
|
||||
KissCount::KissCount(const char* bdd_filename) : _user(0)
|
||||
{
|
||||
wxRect rect = wxDisplay().GetGeometry();
|
||||
|
||||
@@ -78,12 +78,12 @@ void KissCount::LoadUser(const wxString& user)
|
||||
|
||||
void KissCount::LoadYear(int year, bool force)
|
||||
{
|
||||
if (!force && _user->_operations[year] != NULL) return;
|
||||
if (!force && _user->_operations[year] != 0) return;
|
||||
|
||||
if (_user->_operations[year] != NULL)
|
||||
if (_user->_operations[year] != 0)
|
||||
{
|
||||
delete _user->_operations[year];
|
||||
_user->_operations[year] = NULL;
|
||||
_user->_operations[year] = 0;
|
||||
}
|
||||
|
||||
_db->LoadYear(_user, year);
|
||||
@@ -408,7 +408,7 @@ void KissCount::KillMe()
|
||||
_wxUI->KillMe();
|
||||
_db->KillMe(_user);
|
||||
delete _user;
|
||||
_user = NULL;
|
||||
_user = 0;
|
||||
_wxUI->ChangeUser();
|
||||
}
|
||||
|
||||
@@ -458,9 +458,9 @@ bool KissCount::SearchPreviousOperation(Operation* res, Operation& op, int month
|
||||
date = new wxDateTime(0, (wxDateTime::Month)month, year);
|
||||
|
||||
if (limitToType)
|
||||
operations = _db->Search(_user, &op.description, date, NULL, NULL, NULL, v, op.fix_cost ? FIX_OP : NON_FIX_OP, v, false);
|
||||
operations = _db->Search(_user, &op.description, date, 0, 0, 0, v, op.fix_cost ? FIX_OP : NON_FIX_OP, v, false);
|
||||
else
|
||||
operations = _db->Search(_user, &op.description, date, NULL, NULL, NULL, v, ALL_OP, v, false);
|
||||
operations = _db->Search(_user, &op.description, date, 0, 0, 0, v, ALL_OP, v, false);
|
||||
|
||||
|
||||
delete date;
|
||||
@@ -618,7 +618,7 @@ ImportEngine* KissCount::GetImportEngine(wxString path)
|
||||
if ((*it)->HandleFile(path, _user, _db, this))
|
||||
return *it;
|
||||
|
||||
return NULL;
|
||||
return 0;
|
||||
}
|
||||
|
||||
void KissCount::UpdateImportPattern()
|
||||
@@ -671,7 +671,7 @@ ExportEngine* KissCount::GetExportEngine(wxString path)
|
||||
if ((*it)->HandleFile(path, _user, _db, this))
|
||||
return *it;
|
||||
|
||||
return NULL;
|
||||
return 0;
|
||||
}
|
||||
|
||||
std::vector<ImportEngine*>* KissCount::GetImportEngines()
|
||||
|
||||
Reference in New Issue
Block a user