ucb/source/ucp/webdav-neon/NeonPropFindRequest.cxx | 2 +- xmlhelp/source/cxxhelp/provider/databases.hxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
New commits: commit 560e4fd02f8a4a3e26b3810b12d02a2d2e78593f Author: Sameer Deshmukh <sameer.deshmuk...@gmail.com> Date: Sun Apr 21 17:52:54 2013 +0530 fdo#62096 - Changed a few compareTo's to '==' Change-Id: I0a0ba87ec517e5dd776ab45b232dd7f227451466 Reviewed-on: https://gerrit.libreoffice.org/3523 Reviewed-by: Thomas Arnhold <tho...@arnhold.org> Reviewed-by: Fridrich Strba <fridr...@documentfoundation.org> Tested-by: Fridrich Strba <fridr...@documentfoundation.org> diff --git a/ucb/source/ucp/webdav-neon/NeonPropFindRequest.cxx b/ucb/source/ucp/webdav-neon/NeonPropFindRequest.cxx index 0f10513..0ec097c 100644 --- a/ucb/source/ucp/webdav-neon/NeonPropFindRequest.cxx +++ b/ucb/source/ucp/webdav-neon/NeonPropFindRequest.cxx @@ -135,7 +135,7 @@ extern "C" int NPFR_propfind_iter( void* userdata, if ( !aValue.isEmpty() ) { aValue = stripDavNamespace( aValue ).toAsciiLowerCase(); - if ( aValue.compareTo( "<collection" ) == 0 ) + if ( aValue == "<collection" ) { thePropertyValue.Value <<= OUString("collection"); diff --git a/xmlhelp/source/cxxhelp/provider/databases.hxx b/xmlhelp/source/cxxhelp/provider/databases.hxx index 905c86c..8585700 100644 --- a/xmlhelp/source/cxxhelp/provider/databases.hxx +++ b/xmlhelp/source/cxxhelp/provider/databases.hxx @@ -156,7 +156,7 @@ namespace chelp { { bool operator()( const OUString& rKey1, const OUString& rKey2 ) const { - return rKey1.compareTo( rKey2 ) == 0; + return (rKey1 == rKey2); } }; @@ -351,7 +351,7 @@ namespace chelp { { bool operator()( const OString& rKey1, const OString& rKey2 ) const { - return rKey1.compareTo( rKey2 ) == 0; + return (rKey1 == rKey2); } }; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits