- Timestamp:
- Apr 10, 2008, 5:53:20 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core2/src/orxonox/core/ConfigFileManager.cc
r1023 r1025 104 104 { 105 105 if (this->additionalComment_ == "" || this->additionalComment_.size() == 0) 106 return ( this->name_);106 return ("[" + this->name_ + "]"); 107 107 else 108 return ( this->name_ + "" + this->additionalComment_);108 return ("[" + this->name_ + "] " + this->additionalComment_); 109 109 } 110 110 … … 183 183 std::string comment = temp.substr(pos2 + 1); 184 184 if (isComment(comment)) 185 newsection = new ConfigFileSection(line.substr(pos1 , pos2 - pos1 +1), comment);185 newsection = new ConfigFileSection(line.substr(pos1 + 1, pos2 - pos1 - 1), comment); 186 186 else 187 newsection = new ConfigFileSection(line.substr(pos1 , pos2 - pos1 +1));187 newsection = new ConfigFileSection(line.substr(pos1 + 1, pos2 - pos1 - 1)); 188 188 this->sections_.insert(this->sections_.end(), newsection); 189 189 continue;
Note: See TracChangeset
for help on using the changeset viewer.