mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-25 16:43:33 +00:00
Sprinkle a couple of std::move and a const
This commit is contained in:
parent
7400050b38
commit
5793f5cf18
@ -40,7 +40,7 @@ namespace Resource
|
|||||||
}
|
}
|
||||||
|
|
||||||
osg::ref_ptr<Resource::Animation> mergedAnimationTrack = new Resource::Animation;
|
osg::ref_ptr<Resource::Animation> mergedAnimationTrack = new Resource::Animation;
|
||||||
std::string animationName = animation->getName();
|
const std::string animationName = animation->getName();
|
||||||
mergedAnimationTrack->setName(animationName);
|
mergedAnimationTrack->setName(animationName);
|
||||||
|
|
||||||
const osgAnimation::ChannelList& channels = animation->getChannels();
|
const osgAnimation::ChannelList& channels = animation->getChannels();
|
||||||
|
@ -2141,7 +2141,7 @@ struct ConvexHull
|
|||||||
finalEdges.push_back(edge);
|
finalEdges.push_back(edge);
|
||||||
}
|
}
|
||||||
|
|
||||||
_edges = finalEdges;
|
_edges = std::move(finalEdges);
|
||||||
}
|
}
|
||||||
|
|
||||||
void transform(const osg::Matrixd& m)
|
void transform(const osg::Matrixd& m)
|
||||||
|
@ -221,7 +221,7 @@ void ShadowsBin::sortImplementation()
|
|||||||
}
|
}
|
||||||
if (!noTestRoot->_leaves.empty())
|
if (!noTestRoot->_leaves.empty())
|
||||||
newList.push_back(noTestRoot);
|
newList.push_back(noTestRoot);
|
||||||
_stateGraphList = newList;
|
_stateGraphList = std::move(newList);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user