[Libreoffice-commits] core.git: ucb/source

Noel Grandin noel.grandin at collabora.co.uk
Thu Jun 1 06:28:40 UTC 2017


 ucb/source/ucp/cmis/cmis_content.cxx      |    2 +-
 ucb/source/ucp/cmis/cmis_repo_content.cxx |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 6b2b689e944be554f7882b349332686755ce6c4b
Author: Noel Grandin <noel.grandin at collabora.co.uk>
Date:   Wed May 31 12:07:46 2017 +0200

    clang-tidy misc-string-compare
    
    Change-Id: Ic5250563b7dc9c19771d3f728d2087ef335ceb46
    Reviewed-on: https://gerrit.libreoffice.org/38279
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/ucb/source/ucp/cmis/cmis_content.cxx b/ucb/source/ucp/cmis/cmis_content.cxx
index ccd789b8a84f..def0db069191 100644
--- a/ucb/source/ucp/cmis/cmis_content.cxx
+++ b/ucb/source/ucp/cmis/cmis_content.cxx
@@ -430,7 +430,7 @@ namespace cmis
                     }
                     catch( const libcmis::Exception & e )
                     {
-                        if ( e.getType().compare( "permissionDenied" ) != 0 )
+                        if ( e.getType() != "permissionDenied" )
                             throw;
                     }
                 }
diff --git a/ucb/source/ucp/cmis/cmis_repo_content.cxx b/ucb/source/ucp/cmis/cmis_repo_content.cxx
index eee98f3761d7..208271edf104 100644
--- a/ucb/source/ucp/cmis/cmis_repo_content.cxx
+++ b/ucb/source/ucp/cmis/cmis_repo_content.cxx
@@ -212,7 +212,7 @@ namespace cmis
                     {
                         SAL_INFO( "ucb.ucp.cmis", "Error getting repositories: " << e.what() );
 
-                        if ( e.getType().compare( "permissionDenied" ) != 0 )
+                        if ( e.getType() != "permissionDenied" )
                         {
                             ucbhelper::cancelCommandExecution(
                                             ucb::IOErrorCode_INVALID_DEVICE,


More information about the Libreoffice-commits mailing list