Changeset 11071 for code/trunk/src/libraries/core/ConfigurablePaths.cc
- Timestamp:
- Jan 17, 2016, 10:29:21 PM (9 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/libraries/core/ConfigurablePaths.cc
r10624 r11071 54 54 #include "util/Exception.h" 55 55 #include "commandline/CommandLineIncludes.h" 56 #include "core/ApplicationPaths.h" 56 57 57 58 // Differentiate Boost Filesystem v2 and v3 … … 67 68 68 69 //! Static pointer to the singleton 69 ConfigurablePaths* ConfigurablePaths::singletonPtr_s = 0;70 ConfigurablePaths* ConfigurablePaths::singletonPtr_s = nullptr; 70 71 71 72 SetCommandLineArgument(externalDataPath, "").information("Path to the external data files"); … … 122 123 char* userDataPathPtr(getenv("APPDATA")); 123 124 #endif 124 if (userDataPathPtr == NULL)125 if (userDataPathPtr == nullptr) 125 126 ThrowException(General, "Could not retrieve user data path."); 126 127 bf::path userDataPath(userDataPathPtr); … … 143 144 144 145 // Create directories to avoid problems when opening files in non existent folders. 145 std::vector<std::pair<bf::path, std::string> 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")); 148 149 149 for (std::vector<std::pair<bf::path, std::string> 150 for (std::vector<std::pair<bf::path, std::string>>::iterator it = directories.begin(); 150 151 it != directories.end(); ++it) 151 152 {
Note: See TracChangeset
for help on using the changeset viewer.