diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-02-04 15:21:57 +0000 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-02-04 15:22:03 +0000 |
| commit | 760b37f71d200643d3e267472e5cc290d38d1a53 (patch) | |
| tree | ac7622f4f966af3675e3e47651bd9e88eac4fa23 /src/config/ConfigManager.cpp | |
| parent | a431c1b01c08cdc1c2f030bebf052aa4f534d12a (diff) | |
properly rid of whitespace chars from cfg lines
Diffstat (limited to 'src/config/ConfigManager.cpp')
| -rw-r--r-- | src/config/ConfigManager.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 07ea3d03..142c8d71 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -1126,10 +1126,7 @@ void CConfigManager::parseLine(std::string& line) { startPos++; } - // remove shit at the beginning - while (line[0] == ' ' || line[0] == '\t') { - line = line.substr(1); - } + line = removeBeginEndSpacesTabs(line); if (line.contains(" {")) { auto cat = line.substr(0, line.find(" {")); |
