clang-tidy complained about std::moves

This commit is contained in:
marauder2k7 2025-05-07 17:04:55 +01:00
parent 6237703140
commit bab75a3a46
6 changed files with 24 additions and 24 deletions

View file

@ -1163,7 +1163,7 @@ ConsoleValue Namespace::Entry::execute(S32 argc, ConsoleValue *argv, SimObject *
}
else
{
return std::move(ConsoleValue());
return (ConsoleValue());
}
}
@ -1181,7 +1181,7 @@ ConsoleValue Namespace::Entry::execute(S32 argc, ConsoleValue *argv, SimObject *
{
Con::warnf(ConsoleLogEntry::Script, "%s::%s - wrong number of arguments. got %d, expected %d to %d", mNamespace->mName, mFunctionName, argc, mMinArgs, mMaxArgs);
Con::warnf(ConsoleLogEntry::Script, "usage: %s", mUsage);
return std::move(ConsoleValue());
return (ConsoleValue());
}
ConsoleValue result;