summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-03-08 12:37:15 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-03-08 13:04:13 +0100
commit6583305dd70e31ae745d709b8cda8c7b68219735 (patch)
treee50a38a329c161b3d3a99c11fa49a53a3dfb8330 /svx
parenta3c0df8222a20860f64b06c956c213131b79a73b (diff)
simplify compareTo (now correct)
Change-Id: Ia4fd2f54d0bda71d472f46949500c0b23ff8e1b7 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/unodraw/unomod.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/unodraw/unomod.cxx b/svx/source/unodraw/unomod.cxx
index 76e70e9063ea..d3b12680ab85 100644
--- a/svx/source/unodraw/unomod.cxx
+++ b/svx/source/unodraw/unomod.cxx
@@ -172,7 +172,7 @@ uno::Reference< uno::XInterface > SAL_CALL SvxUnoDrawMSFactory::createInstance(
{
const OUString aDrawingPrefix( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.drawing.") );
- if( rServiceSpecifier.compareTo( aDrawingPrefix, aDrawingPrefix.getLength() ) == 0 )
+ if( rServiceSpecifier.startsWith( aDrawingPrefix ) )
{
sal_uInt32 nType = UHashMap::getId( rServiceSpecifier );
if( nType != UHASHMAP_NOTFOUND )