We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2fe6b7 commit fdbae9fCopy full SHA for fdbae9f
2 files changed
libs/common/src/System_Other.cpp
@@ -32,7 +32,7 @@ boost::filesystem::path System::getHomePath()
32
33
std::string System::getUserName()
34
{
35
- const std::string name = getEnvVar("USER");
+ std::string name = getEnvVar("USER");
36
if(name.empty())
37
throw std::runtime_error("Could not get username");
38
return name;
libs/common/src/Tokenizer.cpp
@@ -33,7 +33,7 @@ std::string Tokenizer::next()
return "";
const auto newPos = data.find_first_of(delimiter, curPos);
- const auto result = data.substr(curPos, newPos - curPos);
+ auto result = data.substr(curPos, newPos - curPos);
curPos = (newPos == std::string::npos) ? newPos : newPos + 1;
39
return result;
0 commit comments