diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-31 12:07:46 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-01 08:27:54 +0200 |
commit | 6b2b689e944be554f7882b349332686755ce6c4b (patch) | |
tree | 963edeb6265542a507621d2cee4df5978663935f /ucb | |
parent | 066665644b398a882e6cded98af5bb060af41d76 (diff) |
clang-tidy misc-string-compare
Change-Id: Ic5250563b7dc9c19771d3f728d2087ef335ceb46
Reviewed-on: https://gerrit.libreoffice.org/38279
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/cmis/cmis_content.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/cmis/cmis_repo_content.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
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, |