summaryrefslogtreecommitdiff
path: root/framework/source/uielement/addonstoolbarwrapper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'framework/source/uielement/addonstoolbarwrapper.cxx')
-rw-r--r--framework/source/uielement/addonstoolbarwrapper.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/source/uielement/addonstoolbarwrapper.cxx b/framework/source/uielement/addonstoolbarwrapper.cxx
index 379f2a4d16be..1e9d37e6ce1c 100644
--- a/framework/source/uielement/addonstoolbarwrapper.cxx
+++ b/framework/source/uielement/addonstoolbarwrapper.cxx
@@ -101,7 +101,7 @@ void SAL_CALL AddonsToolBarWrapper::initialize( const Sequence< Any >& aArgument
}
Reference< XFrame > xFrame( m_xWeakFrame );
- if ( xFrame.is() && m_aConfigData.getLength() > 0 )
+ if ( xFrame.is() && m_aConfigData.hasElements() )
{
// Create VCL based toolbar which will be filled with settings data
VclPtr<ToolBox> pToolBar;
@@ -122,7 +122,7 @@ void SAL_CALL AddonsToolBarWrapper::initialize( const Sequence< Any >& aArgument
try
{
- if (( m_aConfigData.getLength() > 0 ) && pToolBar && pToolBarManager )
+ if ( m_aConfigData.hasElements() && pToolBar && pToolBarManager )
{
// Fill toolbar with container contents
pToolBarManager->FillToolbar( m_aConfigData );