1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-04-16 08:42:23 +00:00

Fix gcc compile error.

This commit is contained in:
cc9cii 2014-09-09 21:24:54 +10:00
parent 4471fe771e
commit fdc20c595d

View File

@ -195,7 +195,7 @@ bool CSVDoc::ViewManager::closeRequest (View *view)
// NOTE: This method assumes that it is called only if the last document // NOTE: This method assumes that it is called only if the last document
void CSVDoc::ViewManager::removeDocAndView (CSMDoc::Document *document) void CSVDoc::ViewManager::removeDocAndView (CSMDoc::Document *document)
{ {
for (std::vector<View *>::const_iterator iter (mViews.begin()); iter!=mViews.end(); ++iter) for (std::vector<View *>::iterator iter (mViews.begin()); iter!=mViews.end(); ++iter)
{ {
// the first match should also be the only match // the first match should also be the only match
if((*iter)->getDocument() == document) if((*iter)->getDocument() == document)