Skip to content
Snippets Groups Projects
Commit 8338a8e0 authored by Jan Trávníček's avatar Jan Trávníček
Browse files

tidy: drop redundant string initialization

parent 9f6a1517
No related branches found
No related tags found
1 merge request!211Merge jt
...@@ -865,11 +865,11 @@ std::string GasTexConverter::getStackSymbols(const ext::vector<SymbolType>& stac ...@@ -865,11 +865,11 @@ std::string GasTexConverter::getStackSymbols(const ext::vector<SymbolType>& stac
return "$\\varepsilon$"; return "$\\varepsilon$";
} }
   
std::string symbols = ""; std::string symbols;
int i=0; int i=0;
for (const SymbolType & symbol : stackSymbols) { for (const SymbolType & symbol : stackSymbols) {
if(i++ !=0) { if(i++ !=0) {
symbols +=" "; symbols += " ";
} }
symbols += replace ( factory::StringDataFactory::toString ( symbol ), "\"", "\\\"" ); symbols += replace ( factory::StringDataFactory::toString ( symbol ), "\"", "\\\"" );
} }
......
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