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:
parent
4471fe771e
commit
fdc20c595d
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user