Changeset 1325 for code/branches/console/src/core
- Timestamp:
- May 19, 2008, 3:54:50 PM (17 years ago)
- Location:
- code/branches/console/src/core
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/console/src/core/ConfigValueContainer.cc
r1324 r1325 87 87 88 88 if (defvalue.size() > 0) 89 this->value_ = defvalue[0]; 90 91 for (unsigned int i = 0; i < defvalue.size(); i++) 92 ConfigFileManager::getSingleton()->getValue(this->type_, this->sectionname_, this->varname_, i, defvalue[i].toString(), this->value_.isA(MT_string)); 93 94 for (unsigned int i = 0; i < defvalue.size(); i++) 95 this->defvalueStringVector_.push_back(defvalue[i].toString()); 96 97 this->update(); 89 { 90 this->value_ = defvalue[0]; 91 92 for (unsigned int i = 0; i < defvalue.size(); i++) 93 { 94 ConfigFileManager::getSingleton()->getValue(this->type_, this->sectionname_, this->varname_, i, defvalue[i].toString(), this->value_.isA(MT_string)); 95 this->defvalueStringVector_.push_back(defvalue[i].toString()); 96 } 97 98 this->update(); 99 } 98 100 } 99 101 … … 282 284 { 283 285 if (i < this->defvalueStringVector_.size()) 286 { 284 287 this->value_.fromString(ConfigFileManager::getSingleton()->getValue(this->type_, this->sectionname_, this->varname_, i, this->defvalueStringVector_[i], this->value_.isA(MT_string))); 288 } 285 289 else 286 this->value_.fromString(ConfigFileManager::getSingleton()->getValue(this->type_, this->sectionname_, this->varname_, i, MultiTypeMath(), this->value_.isA(MT_string))); 290 { 291 this->value_.fromString(ConfigFileManager::getSingleton()->getValue(this->type_, this->sectionname_, this->varname_, i, "abc", this->value_.isA(MT_string))); 292 } 287 293 288 294 this->valueVector_.push_back(this->value_); -
code/branches/console/src/core/ConfigValueContainer.h
r1324 r1325 94 94 { 95 95 this->value_ = T(); 96 this->update(); 96 97 } 97 98 -
code/branches/console/src/core/Shell.cc
r1324 r1325 80 80 SetConfigValue(maxHistoryLength_, 100); 81 81 SetConfigValue(historyOffset_, 0); 82 SetConfigValueVector(commandHistory_, std::vector<std::string>( 1, ""));82 SetConfigValueVector(commandHistory_, std::vector<std::string>()); 83 83 84 84 if (this->historyOffset_ >= this->maxHistoryLength_)
Note: See TracChangeset
for help on using the changeset viewer.