Use '0' instead of NULL
This commit is contained in:
@@ -42,8 +42,8 @@ wxColour categoryColors[MAX_CATEGORY] = {wxColour(0x00, 0x45, 0x86),
|
||||
wxColour(0x00, 0x84, 0xD1)};
|
||||
|
||||
wxUI::wxUI(KissCount* kiss, const wxString& title, const wxPoint& pos, const wxSize& size)
|
||||
: wxFrame(NULL, -1, title, pos, size), _kiss(kiss),
|
||||
_curPanel(NULL), _locale(NULL), _needReload(false)
|
||||
: wxFrame(0, -1, title, pos, size), _kiss(kiss),
|
||||
_curPanel(0), _locale(0), _needReload(false)
|
||||
{
|
||||
wxInitAllImageHandlers();
|
||||
|
||||
@@ -87,7 +87,7 @@ bool wxUI::SetLanguage(long language)
|
||||
bool res = true;
|
||||
|
||||
if (_locale) delete _locale;
|
||||
_locale = NULL;
|
||||
_locale = 0;
|
||||
|
||||
// load language if possible, fall back to english otherwise
|
||||
if(wxLocale::IsAvailable(language))
|
||||
@@ -104,7 +104,7 @@ bool wxUI::SetLanguage(long language)
|
||||
_language = (wxLanguage) language;
|
||||
}
|
||||
|
||||
if (_locale == NULL || !_locale->IsOk())
|
||||
if (_locale == 0 || !_locale->IsOk())
|
||||
{
|
||||
if (_locale) delete _locale;
|
||||
_locale = new wxLocale();
|
||||
@@ -167,7 +167,7 @@ void wxUI::LoadPanels()
|
||||
if (_curPanel)
|
||||
{
|
||||
_vbox->Detach(_curPanel);
|
||||
_curPanel = NULL;
|
||||
_curPanel = 0;
|
||||
}
|
||||
|
||||
if (_panels.size())
|
||||
@@ -275,7 +275,7 @@ void wxUI::KillMe()
|
||||
if (_curPanel)
|
||||
{
|
||||
_vbox->Detach(_curPanel);
|
||||
_curPanel = NULL;
|
||||
_curPanel = 0;
|
||||
}
|
||||
|
||||
for (it=_panels.begin(); it!= _panels.end(); it++)
|
||||
|
||||
Reference in New Issue
Block a user