summaryrefslogtreecommitdiff
path: root/toolkit/source/controls/eventcontainer.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/source/controls/eventcontainer.cxx')
-rw-r--r--toolkit/source/controls/eventcontainer.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/toolkit/source/controls/eventcontainer.cxx b/toolkit/source/controls/eventcontainer.cxx
index 165c91296cb9..04aeaf2bfc42 100644
--- a/toolkit/source/controls/eventcontainer.cxx
+++ b/toolkit/source/controls/eventcontainer.cxx
@@ -43,8 +43,7 @@ Type ScriptEventContainer::getElementType()
sal_Bool ScriptEventContainer::hasElements()
{
- bool bRet = (mnElementCount > 0);
- return bRet;
+ return !mHashMap.empty();
}
// Methods XNameAccess
@@ -171,8 +170,7 @@ void ScriptEventContainer::removeContainerListener( const css::uno::Reference< c
ScriptEventContainer::ScriptEventContainer()
- : mnElementCount( 0 ),
- mType( cppu::UnoType<ScriptEventDescriptor>::get() ),
+ : mType( cppu::UnoType<ScriptEventDescriptor>::get() ),
maContainerListeners( *this )
{
}