aboutsummaryrefslogtreecommitdiff
path: root/src/mainmenumanager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainmenumanager.h')
-rw-r--r--src/mainmenumanager.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mainmenumanager.h b/src/mainmenumanager.h
index db8aa9e19..b14ca56e5 100644
--- a/src/mainmenumanager.h
+++ b/src/mainmenumanager.h
@@ -56,7 +56,7 @@ public:
assert(*i != menu);
}
- if(m_stack.size() != 0)
+ if(!m_stack.empty())
m_stack.back()->setVisible(false);
m_stack.push_back(menu);
}
@@ -84,14 +84,14 @@ public:
assert(*i == menu);
m_stack.erase(i);*/
- if(m_stack.size() != 0)
+ if(!m_stack.empty())
m_stack.back()->setVisible(true);
}
// Returns true to prevent further processing
virtual bool preprocessEvent(const SEvent& event)
{
- if(m_stack.size() != 0)
+ if(!m_stack.empty())
return m_stack.back()->preprocessEvent(event);
else
return false;