diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-04-18 13:25:27 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-04-18 13:25:27 +0200 |
| commit | 24316f2e717237d754c6b1ce75be024e4ef34edb (patch) | |
| tree | 6590ed660ff9334ec2dd10d794106913a78cbf33 /src/config/ConfigManager.cpp | |
| parent | 655c0384179f3a72132784bb85f0d722231b8e11 (diff) | |
Fix trailing spaces in config
Diffstat (limited to 'src/config/ConfigManager.cpp')
| -rw-r--r-- | src/config/ConfigManager.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 7a42137b..54bc2c0c 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -82,6 +82,7 @@ void CConfigManager::configSetValueSafe(const std::string& COMMAND, const std::s return; } + auto& CONFIGENTRY = configValues.at(COMMAND); if (CONFIGENTRY.intValue != -1) { try { @@ -271,8 +272,9 @@ void CConfigManager::parseLine(std::string& line) { if (EQUALSPLACE == std::string::npos) return; - const auto COMMAND = line.substr(0, EQUALSPLACE); - const auto VALUE = line.substr(EQUALSPLACE + 1); + const auto COMMAND = removeBeginEndSpacesTabs(line.substr(0, EQUALSPLACE)); + const auto VALUE = removeBeginEndSpacesTabs(line.substr(EQUALSPLACE + 1)); + // if (COMMAND == "exec") { if (isFirstLaunch) { |
