summaryrefslogtreecommitdiff
path: root/xmloff/source/style/XMLClipPropertyHandler.cxx
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-03-08 14:11:35 +0100
committerFridrich Strba <fridrich@documentfoundation.org>2013-03-08 13:16:49 +0000
commit4bf95c4c31dd871065d4042028a4b3ae476dab70 (patch)
tree2935dfd660fc2ee2b914ca27a72077e51e5862f3 /xmloff/source/style/XMLClipPropertyHandler.cxx
parent596334776ad45f7ab87937615fa1d4e7d2d0fd42 (diff)
make use of startsWith()
Change-Id: Ie70097de550ddd1cddc6714f8f86f9723cb36679 Reviewed-on: https://gerrit.libreoffice.org/2599 Tested-by: Fridrich Strba <fridrich@documentfoundation.org> Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'xmloff/source/style/XMLClipPropertyHandler.cxx')
-rw-r--r--xmloff/source/style/XMLClipPropertyHandler.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/style/XMLClipPropertyHandler.cxx b/xmloff/source/style/XMLClipPropertyHandler.cxx
index e55e6ee4a87d..ec0e1d59de1a 100644
--- a/xmloff/source/style/XMLClipPropertyHandler.cxx
+++ b/xmloff/source/style/XMLClipPropertyHandler.cxx
@@ -66,7 +66,7 @@ sal_Bool XMLClipPropertyHandler::importXML( const OUString& rStrImpValue, uno::A
sal_Bool bRet = sal_False;
sal_Int32 nLen = rStrImpValue.getLength();
if( nLen > 6 &&
- 0 == rStrImpValue.compareTo( GetXMLToken(XML_RECT), 4 ) &&
+ rStrImpValue.startsWith( GetXMLToken(XML_RECT)) &&
rStrImpValue[4] == '(' &&
rStrImpValue[nLen-1] == ')' )
{