Skip to content

Commit b900322

Browse files
committed
clangimport.cpp: fixed performance-move-const-arg clang-tidy warning
1 parent c5213ec commit b900322

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
@@ -998,7 +998,7 @@ Token *clangimport::AstNode::createTokens(TokenList &tokenList)
998998
--addrIndex;
999999
const std::string addr = mExtTokens[addrIndex];
10001000
std::string name = unquote(getSpelling());
1001-
Token *reftok = addtoken(tokenList, name.empty() ? "<NoName>" : std::move(name));
1001+
Token *reftok = addtoken(tokenList, name.empty() ? "<NoName>" : name);
10021002
mData->ref(addr, reftok);
10031003
return reftok;
10041004
}

0 commit comments

Comments
 (0)