From 4bf95c4c31dd871065d4042028a4b3ae476dab70 Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Fri, 8 Mar 2013 14:11:35 +0100 Subject: make use of startsWith() Change-Id: Ie70097de550ddd1cddc6714f8f86f9723cb36679 Reviewed-on: https://gerrit.libreoffice.org/2599 Tested-by: Fridrich Strba Reviewed-by: Fridrich Strba --- unotools/source/config/dynamicmenuoptions.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unotools') diff --git a/unotools/source/config/dynamicmenuoptions.cxx b/unotools/source/config/dynamicmenuoptions.cxx index 9696ef8934e1..78042d66bc84 100644 --- a/unotools/source/config/dynamicmenuoptions.cxx +++ b/unotools/source/config/dynamicmenuoptions.cxx @@ -197,7 +197,7 @@ class SvtDynMenu pItem!=lUserEntries.end() ; ++pItem ) { - if( pItem->sName.compareTo( PATHPREFIX_USER, 1 ) == 0 ) + if( pItem->sName.startsWith( PATHPREFIX_USER ) ) { OUString sNr = pItem->sName.copy( 1, pItem->sName.getLength()-1 ); sal_Int32 nCheckNr = sNr.toInt32(); -- cgit v1.2.3