Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 26a102f

Browse files
committed
fixed performance-inefficient-string-concatenation warning
1 parent 5f83b8c commit 26a102f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

simplecpp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ void simplecpp::TokenList::readfile(std::istream &istr, const std::string &filen
650650
}
651651
return;
652652
}
653-
const std::string endOfRawString(')' + delim + currentToken);
653+
const std::string endOfRawString(std::string(")").append(delim).append(currentToken));
654654
while (istr.good() && !(endsWith(currentToken, endOfRawString) && currentToken.size() > 1))
655655
currentToken += readChar(istr,bom);
656656
if (!endsWith(currentToken, endOfRawString)) {

0 commit comments

Comments
 (0)