set the line length in list macros properly
This commit is contained in:
parent
db6bd63013
commit
b8512cd486
1 changed files with 3 additions and 0 deletions
|
@ -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);\
|
||||
|
|
Loading…
Reference in a new issue