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 2b32efe commit 609f9f2Copy full SHA for 609f9f2
1 file changed
lib/clangimport.cpp
@@ -999,7 +999,7 @@ Token *clangimport::AstNode::createTokens(TokenList &tokenList)
999
--addrIndex;
1000
const std::string addr = mExtTokens[addrIndex];
1001
std::string name = unquote(getSpelling());
1002
- Token *reftok = addtoken(tokenList, name.empty() ? "<NoName>" : std::move(name));
+ Token *reftok = addtoken(tokenList, name.empty() ? "<NoName>" : name);
1003
mData->ref(addr, reftok);
1004
return reftok;
1005
}
0 commit comments