General tidy-up (mainly typecasts) to allow the use of the SGI native
compilers (tested on Irix 6.5 with -mips3 -n32). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@623 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -127,7 +127,7 @@ int MyApp::OnExit()
|
||||
// clean up: Set() returns the active config object as Get() does, but unlike
|
||||
// Get() it doesn't try to create one if there is none (definitely not what
|
||||
// we want here!)
|
||||
delete wxConfigBase::Set(NULL);
|
||||
delete wxConfigBase::Set((wxConfigBase *) NULL);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -138,7 +138,7 @@ int MyApp::OnExit()
|
||||
|
||||
// main frame ctor
|
||||
MyFrame::MyFrame()
|
||||
: wxFrame(NULL, -1, "wxConfig Demo")
|
||||
: wxFrame((wxFrame *) NULL, -1, "wxConfig Demo")
|
||||
{
|
||||
// menu
|
||||
wxMenu *file_menu = new wxMenu;
|
||||
@@ -205,7 +205,7 @@ void MyFrame::OnDelete(wxCommandEvent&)
|
||||
if ( wxConfigBase::Get()->DeleteAll() ) {
|
||||
wxLogMessage("Config file/registry key successfully deleted.");
|
||||
|
||||
delete wxConfigBase::Set(NULL);
|
||||
delete wxConfigBase::Set((wxConfigBase *) NULL);
|
||||
wxConfigBase::DontCreateOnDemand();
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user