set the line length in list macros properly

This commit is contained in:
jacekpoz 2024-04-26 11:19:29 +02:00
parent db6bd63013
commit b8512cd486
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8

View file

@ -251,6 +251,7 @@ inline std::string checkAndRemove(const std::string &str, const std::string &pre
type val;\
while (ss >> val) {\
std::getline(configFile, line);\
line_len = line.size();\
value.push_back(val);\
}\
configFile.seekg(configFile.tellg() - line_len);\
@ -263,6 +264,7 @@ inline std::string checkAndRemove(const std::string &str, const std::string &pre
type type_val;\
for (std::string val; std::getline(ss, val, sep);) {\
std::stringstream(val) >> type_val;\
line_len = line.size();\
value.push_back(type_val);\
}\
configFile.seekg(configFile.tellg() - line_len);\
@ -275,6 +277,7 @@ inline std::string checkAndRemove(const std::string &str, const std::string &pre
type type_val;\
for (std::string val; std::getline(ss, val, sep);) {\
std::stringstream(val) >> type_val;\
line_len = line.size();\
value.push_back(type_val);\
}\
configFile.seekg(configFile.tellg() - line_len);\