+ Prefer prefix ++/-- operators for non-primitive types
This commit is contained in:
@@ -825,7 +825,7 @@ void Application::setActiveDocument(Gui::Document* pcDocument)
|
||||
}
|
||||
|
||||
// notify all views attached to the application (not views belong to a special document)
|
||||
for(list<Gui::BaseView*>::iterator It=d->passive.begin();It!=d->passive.end();It++)
|
||||
for(list<Gui::BaseView*>::iterator It=d->passive.begin();It!=d->passive.end();++It)
|
||||
(*It)->setDocument(pcDocument);
|
||||
}
|
||||
|
||||
@@ -888,10 +888,10 @@ void Application::onUpdate(void)
|
||||
{
|
||||
// update all documents
|
||||
std::map<const App::Document*, Gui::Document*>::iterator It;
|
||||
for (It = d->documents.begin();It != d->documents.end();It++)
|
||||
for (It = d->documents.begin();It != d->documents.end();++It)
|
||||
It->second->onUpdate();
|
||||
// update all the independed views
|
||||
for (std::list<Gui::BaseView*>::iterator It2 = d->passive.begin();It2 != d->passive.end();It2++)
|
||||
for (std::list<Gui::BaseView*>::iterator It2 = d->passive.begin();It2 != d->passive.end();++It2)
|
||||
(*It2)->onUpdate();
|
||||
}
|
||||
|
||||
@@ -925,7 +925,7 @@ void Application::tryClose(QCloseEvent * e)
|
||||
else {
|
||||
// ask all documents if closable
|
||||
std::map<const App::Document*, Gui::Document*>::iterator It;
|
||||
for (It = d->documents.begin();It!=d->documents.end();It++) {
|
||||
for (It = d->documents.begin();It!=d->documents.end();++It) {
|
||||
// a document may have several views attached, so ask it directly
|
||||
#if 0
|
||||
MDIView* active = It->second->getActiveView();
|
||||
@@ -939,7 +939,7 @@ void Application::tryClose(QCloseEvent * e)
|
||||
}
|
||||
|
||||
// ask all passive views if closable
|
||||
for (std::list<Gui::BaseView*>::iterator It = d->passive.begin();It!=d->passive.end();It++) {
|
||||
for (std::list<Gui::BaseView*>::iterator It = d->passive.begin();It!=d->passive.end();++It) {
|
||||
e->setAccepted((*It)->canClose());
|
||||
if (!e->isAccepted())
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user