Skip to content

Commit d8c4ea8

Browse files
committed
refs #14593 - tokenize.cpp: impoved concatination in setScopeInfo()
1 parent b52fd48 commit d8c4ea8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/tokenize.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2588,7 +2588,8 @@ namespace {
25882588
}
25892589
// inline member function
25902590
else if ((scopeInfo->type == ScopeInfo3::Record || scopeInfo->type == ScopeInfo3::Namespace) && tok1 && Token::Match(tok1->tokAt(-1), "%name% (")) {
2591-
std::string scope = scopeInfo->name + "::" + tok1->strAt(-1);
2591+
std::string scope;
2592+
scope.append(scopeInfo->name).append("::").append(tok1->strAt(-1));
25922593
scopeInfo = scopeInfo->addChild(ScopeInfo3::MemberFunction, std::move(scope), tok, tok->link());
25932594
added = true;
25942595
}

0 commit comments

Comments
 (0)