Skip to content
Snippets Groups Projects
Commit 34e60e10 authored by Tom Fischer's avatar Tom Fischer Committed by Dmitri Naumov
Browse files

[BL/FileTools] Use more efficient pop_back() instead of substr()

parent 59949e0e
No related branches found
No related tags found
No related merge requests found
......@@ -101,8 +101,7 @@ bool substituteKeyword(std::string& result, std::string& parenthesized_string,
if (b == 'e' || b == 'E' || b == 'f' || b == 'F' || b == 'g' || b == 'G')
{
type_specification[std::type_index(typeid(double))] = b;
precision_specification = precision_specification.substr(
0, precision_specification.length() - 1);
precision_specification.pop_back();
}
std::string const generated_fmt_string =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment