summaryrefslogtreecommitdiff
path: root/svtools/source/uno/contextmenuhelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svtools/source/uno/contextmenuhelper.cxx')
-rw-r--r--svtools/source/uno/contextmenuhelper.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svtools/source/uno/contextmenuhelper.cxx b/svtools/source/uno/contextmenuhelper.cxx
index 4fcab9e48adf..48554a3420bd 100644
--- a/svtools/source/uno/contextmenuhelper.cxx
+++ b/svtools/source/uno/contextmenuhelper.cxx
@@ -326,7 +326,7 @@ ContextMenuHelper::executePopupMenu(
if ( nResult > 0 )
{
::rtl::OUString aCommand = lcl_GetItemCommandRecursive( pMenu, nResult );
- if ( aCommand.getLength() > 0 )
+ if ( !aCommand.isEmpty() )
dispatchCommand( xFrame, aCommand );
}
}
@@ -548,7 +548,7 @@ ContextMenuHelper::getLabelFromCommandURL(
{
try
{
- if ( aCmdURL.getLength() > 0 )
+ if ( !aCmdURL.isEmpty() )
{
rtl::OUString aStr;
uno::Sequence< beans::PropertyValue > aPropSeq;
@@ -614,7 +614,7 @@ ContextMenuHelper::completeMenuProperties(
if ( bShowMenuImages )
{
Image aImage;
- if ( aCmdURL.getLength() > 0 )
+ if ( !aCmdURL.isEmpty() )
aImage = getImageFromCommandURL( aCmdURL );
pMenu->SetItemImage( nId, aImage );
}