wxConfig is used together with wxConfig::Set now

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5476 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2000-01-17 17:18:53 +00:00
parent aae3ccf88d
commit 5612e5243e
3 changed files with 18 additions and 18 deletions

View File

@@ -48,7 +48,6 @@ class MyApp : public wxApp
private:
wxHtmlHelpController *help;
wxConfig* config;
};
@@ -64,9 +63,11 @@ bool MyApp::OnInit()
wxInitAllImageHandlers();
wxFileSystem::AddHandler(new wxZipFSHandler);
config = new wxConfig("wxHTMLhelp");
SetVendorName("wxWindows");
SetAppName("wxHTMLHelp");
wxConfig::Get(); // create an instance
help = new wxHtmlHelpController;
help -> UseConfig(config);
if (argc < 2) {
wxLogError("Usage : helpview <helpfile> [<more helpfiles>]");
@@ -90,7 +91,7 @@ bool MyApp::OnInit()
int MyApp::OnExit()
{
delete help;
delete config;
delete wxConfig::Set(NULL);
return 0;
}