Add wxStandardPaths::ConfigFileConv enum for clarity and safety
Use an enum instead of type-unsafe "int" for the second parameter of the recently added wxStandardPaths::MakeConfigFileName(). This also avoids unnatural dependency of wxStandardPaths on wxCONFIG_USE_SUBDIR constant defined in a higher level wxFileConfig class. No real changes, but just make things a bit more robust and hopefully more clear.
This commit is contained in:
@@ -29,7 +29,8 @@ public:
|
||||
virtual wxString GetUserLocalDataDir() const wxOVERRIDE;
|
||||
virtual wxString GetPluginsDir() const wxOVERRIDE;
|
||||
virtual wxString GetUserDir(Dir userDir) const wxOVERRIDE;
|
||||
virtual wxString MakeConfigFileName(const wxString& basename, int style) const wxOVERRIDE;
|
||||
virtual wxString MakeConfigFileName(const wxString& basename,
|
||||
ConfigFileConv conv) const wxOVERRIDE;
|
||||
|
||||
|
||||
// MSW-specific methods
|
||||
|
Reference in New Issue
Block a user