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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user