Skip to content

Commit 731513e

Browse files
committed
astutils.cpp: fixed performance-move-const-arg clang-tidy warning
1 parent 82bdde5 commit 731513e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/astutils.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3070,7 +3070,7 @@ int getArgumentPos(const Variable* var, const Function* f)
30703070
});
30713071
if (arg_it == f->argumentList.end())
30723072
return -1;
3073-
return std::distance(f->argumentList.cbegin(), std::move(arg_it));
3073+
return std::distance(f->argumentList.cbegin(), arg_it);
30743074
}
30753075

30763076
const Token* getIteratorExpression(const Token* tok)

0 commit comments

Comments
 (0)