return wxStandardPaths, not wxStandardPathsBase, from wxStandardPathsBase::Get() to allow calling platform-specific methods on it if necessary

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60935 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-06-06 23:34:05 +00:00
parent 5470512797
commit 25f49256ac
6 changed files with 10 additions and 8 deletions

View File

@@ -43,7 +43,7 @@ static wxStandardPaths gs_stdPaths;
// ============================================================================
/* static */
wxStandardPathsBase& wxStandardPathsBase::Get()
wxStandardPaths& wxStandardPathsBase::Get()
{
wxAppTraits * const traits = wxTheApp ? wxTheApp->GetTraits() : NULL;
wxCHECK_MSG( traits, gs_stdPaths, _T("create wxApp before calling this") );
@@ -72,7 +72,7 @@ wxString wxStandardPathsBase::GetExecutablePath() const
return filename.GetFullPath();
}
wxStandardPathsBase& wxAppTraitsBase::GetStandardPaths()
wxStandardPaths& wxAppTraitsBase::GetStandardPaths()
{
return gs_stdPaths;
}