Ticket #39787: patch-wxStandardPaths.diff

File patch-wxStandardPaths.diff, 1.5 KB (added by mojca (Mojca Miklavec), 11 years ago)

A patch for the wxStandardPaths compile error

  • pgadmin/pgAdmin3.cpp

    old new wxString pgAdmin3::LocatePath(const wxString &pathToFind, const bool isFile) 
    13041304        // When using wxStandardPaths on OSX, wx default to the unix,
    13051305        // not to the mac variants. Therefore, we request wxStandardPathsCF
    13061306        // directly.
    1307         wxStandardPathsCF stdPaths ;
     1307        wxStandardPaths stdPaths = wxStandardPaths::Get();
    13081308        dataDir = stdPaths.GetDataDir() ;
    13091309
    13101310#else // other *ixes
  • pgadmin/utils/sysSettings.cpp

    old new wxString sysSettings::GetConfigFile(configFileName cfgname) 
    740740{
    741741        if (cfgname == PGPASS)
    742742        {
    743                 wxStandardPaths stdp;
     743                wxStandardPaths stdp = wxStandardPaths::Get();
    744744                wxString fname = stdp.GetUserConfigDir();
    745745#ifdef WIN32
    746746                fname += wxT("\\postgresql");
    wxString sysSettings::GetFavouritesFile() 
    770770{
    771771        wxString s, tmp;
    772772
    773         wxStandardPaths stdp;
     773        wxStandardPaths stdp = wxStandardPaths::Get();
    774774        tmp = stdp.GetUserConfigDir();
    775775#ifdef WIN32
    776776        tmp += wxT("\\postgresql");
    wxString sysSettings::GetMacrosFile() 
    791791{
    792792        wxString s, tmp;
    793793
    794         wxStandardPaths stdp;
     794        wxStandardPaths stdp = wxStandardPaths::Get();
    795795        tmp = stdp.GetUserConfigDir();
    796796#ifdef WIN32
    797797        tmp += wxT("\\postgresql");
    wxString sysSettings::GetHistoryFile() 
    812812{
    813813        wxString s, tmp;
    814814
    815         wxStandardPaths stdp;
     815        wxStandardPaths stdp = wxStandardPaths::Get();
    816816        tmp = stdp.GetUserConfigDir();
    817817#ifdef WIN32
    818818        tmp += wxT("\\postgresql");