Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7283 for code


Ignore:
Timestamp:
Aug 31, 2010, 3:03:06 AM (14 years ago)
Author:
landauf
Message:

ConfigFileManager added backslashes to strings with special chars when saving them into the config file, but didn't remove them while loading. fixed this issue.

Location:
code/branches/consolecommands3/src/libraries/core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/consolecommands3/src/libraries/core/ConfigFileManager.cc

    r7236 r7283  
    277277                            if (commentposition == std::string::npos)
    278278                            {
    279                                 value = removeTrailingWhitespaces(line.substr(pos1 + 1));
     279                                value = line.substr(pos1 + 1);
    280280                            }
    281281                            else
    282282                            {
    283                                 value = removeTrailingWhitespaces(line.substr(pos1 + 1, commentposition - pos1 - 1));
     283                                value = line.substr(pos1 + 1, commentposition - pos1 - 1);
    284284                                comment = removeTrailingWhitespaces(line.substr(commentposition));
    285285                            }
     286
     287                            value = removeTrailingWhitespaces(value);
     288                            value = removeSlashes(value);
    286289
    287290                            if (pos2 != std::string::npos && pos3 != std::string::npos && pos3 > pos2 + 1)
  • code/branches/consolecommands3/src/libraries/core/command/Executor.cc

    r7276 r7283  
    4848    Executor::Executor(const Executor& other) : name_(other.name_)
    4949    {
    50         for (int i = 0; i < MAX_FUNCTOR_ARGUMENTS; ++i)
     50        for (size_t i = 0; i < MAX_FUNCTOR_ARGUMENTS; ++i)
    5151            defaultValue_[i] = other.defaultValue_[i];
    5252        this->functor_ = other.functor_->clone();
Note: See TracChangeset for help on using the changeset viewer.