diff --git a/lib/programmemory.cpp b/lib/programmemory.cpp index 88de5aa9d29..b69df63a5cb 100644 --- a/lib/programmemory.cpp +++ b/lib/programmemory.cpp @@ -1497,13 +1497,13 @@ namespace { if (expr->isComparisonOp() && (r.isUninitValue() || r.isImpossible())) { if (rhs.isIntValue()) { std::vector result = - infer(ValueFlow::makeIntegralInferModel(), expr->str(), expr->astOperand1()->values(), {rhs}); + infer(ValueFlow::makeIntegralInferModel(), expr->str(), expr->astOperand1()->values(), {std::move(rhs)}); if (!result.empty() && result.front().isKnown()) return result.front(); } if (lhs.isIntValue()) { std::vector result = - infer(ValueFlow::makeIntegralInferModel(), expr->str(), {lhs}, expr->astOperand2()->values()); + infer(ValueFlow::makeIntegralInferModel(), expr->str(), {std::move(lhs)}, expr->astOperand2()->values()); if (!result.empty() && result.front().isKnown()) return result.front(); }