Changeset 10765 for code/branches/cpp11_v2/src/libraries/core/config
- Timestamp:
- Nov 4, 2015, 10:25:42 PM (9 years ago)
- Location:
- code/branches/cpp11_v2/src/libraries/core/config
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/libraries/core/config/ConfigFile.cc
r10733 r10765 275 275 276 276 /** 277 @brief Returns a pointer to the section with given name (or NULLif the section doesn't exist).277 @brief Returns a pointer to the section with given name (or nullptr if the section doesn't exist). 278 278 */ 279 279 ConfigFileSection* ConfigFile::getSection(const std::string& section) const … … 282 282 if ((*it)->getName() == section) 283 283 return (*it); 284 return NULL;284 return nullptr; 285 285 } 286 286 -
code/branches/cpp11_v2/src/libraries/core/config/ConfigFileManager.cc
r9559 r10765 44 44 ConfigFileManager* ConfigFileManager::singletonPtr_s = 0; 45 45 46 /// Constructor: Initializes the array of config files with NULL.46 /// Constructor: Initializes the array of config files with nullptr. 47 47 ConfigFileManager::ConfigFileManager() 48 48 { 49 this->configFiles_.assign( NULL);49 this->configFiles_.assign(nullptr); 50 50 } 51 51 -
code/branches/cpp11_v2/src/libraries/core/config/ConfigFileSection.cc
r9559 r10765 99 99 100 100 /** 101 @brief Returns the entry with given name (or NULLif it doesn't exist).101 @brief Returns the entry with given name (or nullptr if it doesn't exist). 102 102 103 103 @param name The name of the entry … … 110 110 return *it; 111 111 } 112 return NULL;112 return nullptr; 113 113 } 114 114 115 115 /** 116 @brief Returns the entry of a vector element with given name and index (or NULLif it doesn't exist).116 @brief Returns the entry of a vector element with given name and index (or nullptr if it doesn't exist). 117 117 118 118 @param name The name of the vector … … 126 126 return *it; 127 127 } 128 return NULL;128 return nullptr; 129 129 } 130 130 -
code/branches/cpp11_v2/src/libraries/core/config/ConfigValueContainer.h
r9667 r10765 223 223 inline const std::string& getSectionName() const 224 224 { return this->sectionname_; } 225 /// Returns the associated identifier (can be NULL).225 /// Returns the associated identifier (can be nullptr). 226 226 inline Identifier* getIdentifier() const 227 227 { return this->identifier_; } -
code/branches/cpp11_v2/src/libraries/core/config/SettingsConfigFile.cc
r10624 r10765 106 106 void SettingsConfigFile::addConfigValueContainer(ConfigValueContainer* container) 107 107 { 108 if (container == NULL)108 if (container == nullptr) 109 109 return; 110 110 std::pair<std::string, ConfigValueContainer*> second(getLowercase(container->getName()), container); … … 118 118 void SettingsConfigFile::removeConfigValueContainer(ConfigValueContainer* container) 119 119 { 120 if (container == NULL)120 if (container == nullptr) 121 121 return; 122 122 const std::string& sectionLC = getLowercase(container->getSectionName()); … … 269 269 { 270 270 std::string value; 271 it->second.second->getValue<std::string, void>(&value, NULL);271 it->second.second->getValue<std::string, void>(&value, nullptr); 272 272 return value; 273 273 }
Note: See TracChangeset
for help on using the changeset viewer.