-wxIniConfig::wxIniConfig(const wxString& strAppName, const wxString& strVendor,
- const wxString& localFilename, const wxString& globalFilename, long style):
- wxConfigBase(strAppName, strVendor, localFilename, globalFilename, style)
+wxIniConfig::wxIniConfig(const wxString& strAppName,
+ const wxString& strVendor,
+ const wxString& localFilename,
+ const wxString& globalFilename,
+ long style)
+ : wxConfigBase(!strAppName && wxTheApp ? wxTheApp->GetAppName()
+ : strAppName,
+ !strVendor ? (wxTheApp ? wxTheApp->GetVendorName()
+ : strAppName)
+ : strVendor,
+ localFilename, globalFilename, style)