summaryrefslogtreecommitdiff
path: root/unotools
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 /unotools
parent9c34ac28d6b7a8297674f4334c43d93a064f3f3d (diff)
simplify some compareTo
Change-Id: Ib63cfac8b5f129f31534020fd634750e846e3b98
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/ucbhelper/ucblockbytes.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/unotools/source/ucbhelper/ucblockbytes.cxx b/unotools/source/ucbhelper/ucblockbytes.cxx
index 8082f5b1d6fd..8d38da802f10 100644
--- a/unotools/source/ucbhelper/ucblockbytes.cxx
+++ b/unotools/source/ucbhelper/ucblockbytes.cxx
@@ -217,7 +217,7 @@ void SAL_CALL UcbPropertiesChangeListener_Impl::propertiesChange ( const Sequenc
if (evt.NewValue >>= aUrl)
{
::rtl::OUString aBad (RTL_CONSTASCII_USTRINGPARAM ("private:"));
- if (!(aUrl.compareTo (aBad, aBad.getLength()) == 0))
+ if (aUrl != aBad)
{
// URL changed (Redirection).
m_xLockBytes->SetRealURL_Impl( aUrl );