From 3d4723f80a37e719359ad78ad063bc39ac28cd32 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 8 Mar 2013 09:03:10 +0100 Subject: Revert "simplify some compareTo" This reverts commit 19020191cbf3e3c7a7bf98d0958d86d931ae687b, s1.compareTo(s2, length-of-s2) is *not* equivalent to s1 == s2 --- unotools/source/ucbhelper/ucblockbytes.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unotools') diff --git a/unotools/source/ucbhelper/ucblockbytes.cxx b/unotools/source/ucbhelper/ucblockbytes.cxx index 8d38da802f10..8082f5b1d6fd 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 != aBad) + if (!(aUrl.compareTo (aBad, aBad.getLength()) == 0)) { // URL changed (Redirection). m_xLockBytes->SetRealURL_Impl( aUrl ); -- cgit v1.2.3