Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 10, 2016, 1:54:11 PM (8 years ago)
Author:
landauf
Message:

merged branch cpp11_v2 into cpp11_v3

Location:
code/branches/cpp11_v3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v3

  • code/branches/cpp11_v3/src/libraries/core/ConfigurablePaths.cc

    r10624 r11054  
    5454#include "util/Exception.h"
    5555#include "commandline/CommandLineIncludes.h"
     56#include "core/ApplicationPaths.h"
    5657
    5758// Differentiate Boost Filesystem v2 and v3
     
    6768
    6869    //! Static pointer to the singleton
    69     ConfigurablePaths* ConfigurablePaths::singletonPtr_s  = 0;
     70    ConfigurablePaths* ConfigurablePaths::singletonPtr_s  = nullptr;
    7071
    7172    SetCommandLineArgument(externalDataPath, "").information("Path to the external data files");
     
    122123            char* userDataPathPtr(getenv("APPDATA"));
    123124#endif
    124             if (userDataPathPtr == NULL)
     125            if (userDataPathPtr == nullptr)
    125126                ThrowException(General, "Could not retrieve user data path.");
    126127            bf::path userDataPath(userDataPathPtr);
     
    143144
    144145        // Create directories to avoid problems when opening files in non existent folders.
    145         std::vector<std::pair<bf::path, std::string> > directories;
    146         directories.push_back(std::make_pair(bf::path(configPath_), std::string("config")));
    147         directories.push_back(std::make_pair(bf::path(logPath_), std::string("log")));
     146        std::vector<std::pair<bf::path, std::string>> directories;
     147        directories.emplace_back(bf::path(configPath_), std::string("config"));
     148        directories.emplace_back(bf::path(logPath_), std::string("log"));
    148149
    149         for (std::vector<std::pair<bf::path, std::string> >::iterator it = directories.begin();
     150        for (std::vector<std::pair<bf::path, std::string>>::iterator it = directories.begin();
    150151            it != directories.end(); ++it)
    151152        {
Note: See TracChangeset for help on using the changeset viewer.