diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2013-03-08 05:41:38 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2013-03-08 05:42:05 +0100 |
commit | 19020191cbf3e3c7a7bf98d0958d86d931ae687b (patch) | |
tree | 63533a5d8d9929602cd894391a0e4b232451ba69 /forms | |
parent | fix build with --disable-scripting option (diff) | |
download | core-19020191cbf3e3c7a7bf98d0958d86d931ae687b.tar.gz core-19020191cbf3e3c7a7bf98d0958d86d931ae687b.zip |
simplify some compareTo
Change-Id: Ib63cfac8b5f129f31534020fd634750e846e3b98
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/richtext/richtextcontrol.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/forms/source/richtext/richtextcontrol.cxx b/forms/source/richtext/richtextcontrol.cxx index 730d793fb3b2..34e49da2b60d 100644 --- a/forms/source/richtext/richtextcontrol.cxx +++ b/forms/source/richtext/richtextcontrol.cxx @@ -694,7 +694,7 @@ namespace frm // is it an UNO slot? ::rtl::OUString sUnoProtocolPrefix( RTL_CONSTASCII_USTRINGPARAM( ".uno:" ) ); - if ( 0 == _rURL.Complete.compareTo( sUnoProtocolPrefix, sUnoProtocolPrefix.getLength() ) ) + if ( _rURL.Complete == sUnoProtocolPrefix ) { ::rtl::OUString sUnoSlotName = _rURL.Complete.copy( sUnoProtocolPrefix.getLength() ); SfxSlotId nSlotId = lcl_getSlotFromUnoName( SfxSlotPool::GetSlotPool( NULL ), sUnoSlotName ); |