1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-20 18:39:39 +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()
{
std::map<CSMWorld::CellCoordinates, Cell *>::iterator iter (mCells.begin());
while (iter!=mCells.end())
{
iter->second->resetAlteredHeights();
++iter;
}
for (const auto& cell : mCells)
cell.second->resetAlteredHeights();
}
std::vector<osg::ref_ptr<CSVRender::TagBase> > CSVRender::PagedWorldspaceWidget::getSelection (