summaryrefslogtreecommitdiff
path: root/svtools/source/misc/imageresourceaccess.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svtools/source/misc/imageresourceaccess.cxx')
-rw-r--r--svtools/source/misc/imageresourceaccess.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/svtools/source/misc/imageresourceaccess.cxx b/svtools/source/misc/imageresourceaccess.cxx
index 40df75d7e98f..fe6e4740222e 100644
--- a/svtools/source/misc/imageresourceaccess.cxx
+++ b/svtools/source/misc/imageresourceaccess.cxx
@@ -126,11 +126,11 @@ namespace svt
//--------------------------------------------------------------------
bool GraphicAccess::isSupportedURL( const OUString& _rURL )
{
- if ( ( _rURL.indexOfAsciiL( RTL_CONSTASCII_STRINGPARAM( "private:resource/" ) ) == 0 )
- || ( _rURL.indexOfAsciiL( RTL_CONSTASCII_STRINGPARAM( "private:graphicrepository/" ) ) == 0 )
- || ( _rURL.indexOfAsciiL( RTL_CONSTASCII_STRINGPARAM( "private:standardimage/" ) ) == 0 )
- || ( _rURL.indexOfAsciiL( RTL_CONSTASCII_STRINGPARAM( "vnd.sun.star.GraphicObject:" ) ) == 0 )
- || ( _rURL.indexOfAsciiL( RTL_CONSTASCII_STRINGPARAM( "vnd.sun.star.extension://" ) ) == 0 )
+ if ( _rURL.startsWith( "private:resource/" )
+ || _rURL.startsWith( "private:graphicrepository/" )
+ || _rURL.startsWith( "private:standardimage/" )
+ || _rURL.startsWith( "vnd.sun.star.GraphicObject:" )
+ || _rURL.startsWith( "vnd.sun.star.extension://" )
)
return true;
return false;