summaryrefslogtreecommitdiff
path: root/vcl/source/control/notebookbar.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/control/notebookbar.cxx')
-rw-r--r--vcl/source/control/notebookbar.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/control/notebookbar.cxx b/vcl/source/control/notebookbar.cxx
index 9b2381e2cc95..5c8fed1fee15 100644
--- a/vcl/source/control/notebookbar.cxx
+++ b/vcl/source/control/notebookbar.cxx
@@ -147,7 +147,7 @@ void NotebookBar::SetSystemWindow(SystemWindow* pSystemWindow)
void SAL_CALL NotebookBarContextChangeEventListener::notifyContextChangeEvent(const css::ui::ContextChangeEventObject& rEvent)
{
- if (mpParent && mpParent->m_pContextContainers.size() > 0)
+ if (mpParent && !mpParent->m_pContextContainers.empty())
{
for (NotebookbarContextControl* pControl : mpParent->m_pContextContainers)
pControl->SetContext(vcl::EnumContext::GetContextEnum(rEvent.ContextName));