1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-22 13:09:41 +00:00

white iterator loop to C++11 range-based for loop.

This commit is contained in:
Nelsson Huotari 2019-10-04 00:34:07 +03:00
parent bccf36fdbc
commit 6a44cae572

View file

@ -816,13 +816,8 @@ float* CSVRender::PagedWorldspaceWidget::getCellAlteredHeight(const CSMWorld::Ce
void CSVRender::PagedWorldspaceWidget::resetAllAlteredHeights() void CSVRender::PagedWorldspaceWidget::resetAllAlteredHeights()
{ {
std::map<CSMWorld::CellCoordinates, Cell *>::iterator iter (mCells.begin()); for (const auto& cell : mCells)
cell.second->resetAlteredHeights();
while (iter!=mCells.end())
{
iter->second->resetAlteredHeights();
++iter;
}
} }
std::vector<osg::ref_ptr<CSVRender::TagBase> > CSVRender::PagedWorldspaceWidget::getSelection ( std::vector<osg::ref_ptr<CSVRender::TagBase> > CSVRender::PagedWorldspaceWidget::getSelection (