switched to using a real class instead of a namespace because of Mac base/GUI problems

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30004 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2004-10-19 18:49:02 +00:00
parent b36d022a0d
commit 6cb5e50b0d
2 changed files with 87 additions and 24 deletions

59
src/common/stdpbase.cpp Normal file
View File

@@ -0,0 +1,59 @@
///////////////////////////////////////////////////////////////////////////////
// Name: common/stdpbase.cpp
// Purpose: wxStandardPathsBase methods common to all ports
// Author: Vadim Zeitlin
// Modified by:
// Created: 2004-10-19
// RCS-ID: $Id$
// Copyright: (c) 2004 Vadim Zeitlin <vadim@wxwindows.org>
// License: wxWindows license
///////////////////////////////////////////////////////////////////////////////
// ============================================================================
// declarations
// ============================================================================
// ----------------------------------------------------------------------------
// headers
// ----------------------------------------------------------------------------
// for compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#pragma hdrstop
#endif
#include "wx/stdpaths.h"
// ----------------------------------------------------------------------------
// module globals
// ----------------------------------------------------------------------------
static wxStandardPaths gs_stdPaths;
// ============================================================================
// implementation
// ============================================================================
/* static */
wxStandardPaths& wxStandardPathsBase::Get()
{
return gs_stdPaths;
}
wxStandardPathsBase::~wxStandardPathsBase()
{
// nothing to do here
}
wxString wxStandardPathsBase::GetLocalDataDir() const
{
return GetDataDir();
}
wxString wxStandardPathsBase::GetUserLocalDataDir() const
{
return GetUserDataDir();
}