mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-01 03:21:41 +00:00
Don't use std::move on const
This commit is contained in:
parent
471ab431f5
commit
d4d111a709
@ -262,7 +262,7 @@ namespace DetourNavigator
|
||||
if (jobs.top().mProcessTime > now)
|
||||
return {};
|
||||
|
||||
Job job = std::move(jobs.top());
|
||||
Job job = jobs.top();
|
||||
jobs.pop();
|
||||
|
||||
if (changeLastUpdate && job.mChangeType == ChangeType::update)
|
||||
@ -273,7 +273,7 @@ namespace DetourNavigator
|
||||
if (it->second.empty())
|
||||
pushed.erase(it);
|
||||
|
||||
return {std::move(job)};
|
||||
return job;
|
||||
}
|
||||
|
||||
void AsyncNavMeshUpdater::writeDebugFiles(const Job& job, const RecastMesh* recastMesh) const
|
||||
|
Loading…
Reference in New Issue
Block a user