We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
performance-move-const-arg
1 parent 9a71908 commit 1637dacCopy full SHA for 1637dac
1 file changed
lib/clangimport.cpp
@@ -994,7 +994,7 @@ Token *clangimport::AstNode::createTokens(TokenList &tokenList)
994
--addrIndex;
995
const std::string addr = mExtTokens[addrIndex];
996
std::string name = unquote(getSpelling());
997
- Token *reftok = addtoken(tokenList, name.empty() ? "<NoName>" : std::move(name));
+ Token *reftok = addtoken(tokenList, name.empty() ? "<NoName>" : name);
998
mData->ref(addr, reftok);
999
return reftok;
1000
}
0 commit comments