diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2013-03-08 12:37:15 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-03-08 13:04:13 +0100 |
commit | 6583305dd70e31ae745d709b8cda8c7b68219735 (patch) | |
tree | e50a38a329c161b3d3a99c11fa49a53a3dfb8330 /unotools | |
parent | Add PDF Mimetype to Draw (diff) | |
download | core-6583305dd70e31ae745d709b8cda8c7b68219735.tar.gz core-6583305dd70e31ae745d709b8cda8c7b68219735.zip |
simplify compareTo (now correct)
Change-Id: Ia4fd2f54d0bda71d472f46949500c0b23ff8e1b7
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/ucbhelper/ucblockbytes.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unotools/source/ucbhelper/ucblockbytes.cxx b/unotools/source/ucbhelper/ucblockbytes.cxx index 8082f5b1d6fd..dc4a4a44825f 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.startsWith(aBad)) { // URL changed (Redirection). m_xLockBytes->SetRealURL_Impl( aUrl ); |