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:
parent
bccf36fdbc
commit
6a44cae572
1 changed files with 2 additions and 7 deletions
|
@ -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 (
|
||||
|
|
Loading…
Reference in a new issue