summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-03-08 05:41:38 +0100
committerThomas Arnhold <thomas@arnhold.org>2013-03-08 05:42:05 +0100
commit19020191cbf3e3c7a7bf98d0958d86d931ae687b (patch)
tree63533a5d8d9929602cd894391a0e4b232451ba69 /sw
parent9c34ac28d6b7a8297674f4334c43d93a064f3f3d (diff)
simplify some compareTo
Change-Id: Ib63cfac8b5f129f31534020fd634750e846e3b98
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/unocore/unoframe.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/unocore/unoframe.cxx b/sw/source/core/unocore/unoframe.cxx
index dddeee6a7db0..a732aa81bb87 100644
--- a/sw/source/core/unocore/unoframe.cxx
+++ b/sw/source/core/unocore/unoframe.cxx
@@ -1257,7 +1257,7 @@ void SwXFrame::setPropertyValue(const :: OUString& rPropertyName, const :: uno::
// the package URL based graphics are handled in different way currently
// TODO/LATER: actually this is the correct place to handle them
::rtl::OUString aGraphicProtocol( RTL_CONSTASCII_USTRINGPARAM( sGraphicObjectProtocol ) );
- if( aGrfUrl.compareTo( aGraphicProtocol, aGraphicProtocol.getLength() ) == 0 )
+ if( aGrfUrl == aGraphicProtocol )
{
rtl::OString sId(rtl::OUStringToOString(
aGrfUrl.copy(sizeof(sGraphicObjectProtocol)-1),