- Timestamp:
- Jan 10, 2016, 1:54:11 PM (9 years ago)
- Location:
- code/branches/cpp11_v3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v3
- Property svn:mergeinfo changed
-
code/branches/cpp11_v3/src/libraries/core/config/ConfigValueContainer.h
r9667 r11054 59 59 public: 60 60 virtual void call(void* object) = 0; 61 inline virtual~ConfigValueCallbackBase() {}61 virtual inline ~ConfigValueCallbackBase() {} 62 62 }; 63 63 … … 67 67 public: 68 68 inline ConfigValueCallback(void (T::*function) (void)) : function_(function) {} 69 inline virtual ~ConfigValueCallback() {}70 inline virtual void call(void* object)69 virtual inline ~ConfigValueCallback() = default; 70 virtual inline void call(void* object) override 71 71 { 72 72 if (!IdentifierManager::getInstance().isCreatingHierarchy()) … … 130 130 131 131 this->value_ = V(); 132 for ( unsigned int i = 0; i < defvalue.size(); i++)133 this->valueVector_. push_back(MultiType(defvalue[i]));132 for (const D& defvalueElement : defvalue) 133 this->valueVector_.emplace_back(defvalueElement); 134 134 135 135 this->initVector(); … … 183 183 std::vector<T> temp = *value; 184 184 value->clear(); 185 for ( unsigned int i = 0; i < this->valueVector_.size(); ++i)186 value->push_back( this->valueVector_[i]);185 for (const MultiType& vectorEntry : this->valueVector_) 186 value->push_back(vectorEntry); 187 187 188 188 if (value->size() != temp.size()) … … 211 211 { 212 212 value->clear(); 213 for ( unsigned int i = 0; i < this->valueVector_.size(); ++i)214 value->push_back( this->valueVector_[i]);213 for (const MultiType& vectorEntry : this->valueVector_) 214 value->push_back(vectorEntry); 215 215 } 216 216 return *this; … … 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_; }
Note: See TracChangeset
for help on using the changeset viewer.