diff options
Diffstat (limited to 'framework/source/layoutmanager/helpers.cxx')
-rw-r--r-- | framework/source/layoutmanager/helpers.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/source/layoutmanager/helpers.cxx b/framework/source/layoutmanager/helpers.cxx index 1ad507d0464c..5cc82710aed0 100644 --- a/framework/source/layoutmanager/helpers.cxx +++ b/framework/source/layoutmanager/helpers.cxx @@ -199,7 +199,7 @@ OUString getElementTypeFromResourceURL( const OUString& aResourceURL ) OUString aType; OUString aUIResourceURL( UIRESOURCE_URL ); - if ( aResourceURL.indexOf( aUIResourceURL ) == 0 ) + if ( aResourceURL.startsWith( aUIResourceURL ) ) { sal_Int32 nIndex = 0; OUString aPathPart = aResourceURL.copy( aUIResourceURL.getLength() ); @@ -214,7 +214,7 @@ OUString getElementTypeFromResourceURL( const OUString& aResourceURL ) void parseResourceURL( const OUString& aResourceURL, OUString& aElementType, OUString& aElementName ) { OUString aUIResourceURL( UIRESOURCE_URL ); - if ( aResourceURL.indexOf( aUIResourceURL ) == 0 ) + if ( aResourceURL.startsWith( aUIResourceURL ) ) { sal_Int32 nIndex = 0; OUString aPathPart = aResourceURL.copy( aUIResourceURL.getLength() ); |