From e1f6dac6893e0ad9e1b1f03a3b882cf1e9a08d32 Mon Sep 17 00:00:00 2001 From: Ashish Banerjee Date: Wed, 3 Apr 2013 20:11:54 -0600 Subject: Replace `compareTo(...) == 0` with == MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Proposed patch for the following issue: https://bugs.freedesktop.org/show_bug.cgi?id=62096 Change-Id: Ib83a9051ea12c53642f781e5427a6ca728049a7f Reviewed-on: https://gerrit.libreoffice.org/3198 Reviewed-by: Thomas Arnhold Reviewed-by: Luboš Luňák Tested-by: Miklos Vajna --- comphelper/inc/comphelper/property.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'comphelper/inc') diff --git a/comphelper/inc/comphelper/property.hxx b/comphelper/inc/comphelper/property.hxx index d8e0d3b802f2..29ff7b2b9eca 100644 --- a/comphelper/inc/comphelper/property.hxx +++ b/comphelper/inc/comphelper/property.hxx @@ -60,12 +60,12 @@ namespace comphelper // ................................................................ inline bool operator()( const ::com::sun::star::beans::Property& lhs, const ::rtl::OUString& rhs ) const { - return lhs.Name.compareTo(rhs) == 0; + return lhs.Name == rhs ; } // ................................................................ inline bool operator()( const ::rtl::OUString& lhs, const ::com::sun::star::beans::Property& rhs ) const { - return lhs.compareTo(rhs.Name) == 0; + return lhs == rhs.Name ; } }; //-------------------------------------------------------------------------- @@ -74,7 +74,7 @@ namespace comphelper { bool operator() (const ::com::sun::star::beans::Property& x, const ::com::sun::star::beans::Property& y) const { - return x.Name.compareTo(y.Name) == 0; + return x.Name == y.Name ; } }; -- cgit