Skip to content

Commit cdf5ba8

Browse files
committed
clangimport.cpp: fixed performance-move-const-arg clang-tidy warning
1 parent 5a02a66 commit cdf5ba8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/clangimport.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -997,7 +997,7 @@ Token *clangimport::AstNode::createTokens(TokenList &tokenList)
997997
--addrIndex;
998998
const std::string addr = mExtTokens[addrIndex];
999999
std::string name = unquote(getSpelling());
1000-
Token *reftok = addtoken(tokenList, name.empty() ? "<NoName>" : std::move(name));
1000+
Token *reftok = addtoken(tokenList, name.empty() ? "<NoName>" : name);
10011001
mData->ref(addr, reftok);
10021002
return reftok;
10031003
}

0 commit comments

Comments
 (0)