diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-21 15:45:31 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-22 07:44:16 +0100 |
commit | 640e03da110d76b2c7d5ed5b8b8ba3b4367865ba (patch) | |
tree | 79856af3daab1e809c388ac27aa2f3284842235c /ucb | |
parent | a0ebba3d8855fee0bcec04a10137ae3a4f9f0e77 (diff) |
loplugin:simplifybool re-activate the !! warning
Change-Id: Iac7d82a1c228734177be536e9a6c41803c03637b
Reviewed-on: https://gerrit.libreoffice.org/45035
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/core/ucbcmds.cxx | 4 | ||||
-rw-r--r-- | ucb/source/ucp/file/filtask.hxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/webdav-neon/PropertyMap.hxx | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/ucb/source/core/ucbcmds.cxx b/ucb/source/core/ucbcmds.cxx index eecdd5dc1fa2..bcedf21be3d6 100644 --- a/ucb/source/core/ucbcmds.cxx +++ b/ucb/source/core/ucbcmds.cxx @@ -624,11 +624,11 @@ uno::Reference< ucb::XContent > createNew( // (not a and not b) or (a and b) // not( a or b) or (a and b) - if ( ( !!bSourceIsFolder == + if ( ( bSourceIsFolder == !!( nAttribs & ucb::ContentInfoAttribute::KIND_FOLDER ) ) && - ( !!bSourceIsDocument == + ( bSourceIsDocument == !!( nAttribs & ucb::ContentInfoAttribute::KIND_DOCUMENT ) ) ) diff --git a/ucb/source/ucp/file/filtask.hxx b/ucb/source/ucp/file/filtask.hxx index f3a879958fc4..49678e57ede8 100644 --- a/ucb/source/ucp/file/filtask.hxx +++ b/ucb/source/ucp/file/filtask.hxx @@ -211,7 +211,7 @@ namespace fileaccess { bool operator()( const MyProperty& rKey1, const MyProperty& rKey2 ) const { - return !!( rKey1.getPropertyName() == rKey2.getPropertyName() ); + return rKey1.getPropertyName() == rKey2.getPropertyName(); } }; diff --git a/ucb/source/ucp/webdav-neon/PropertyMap.hxx b/ucb/source/ucp/webdav-neon/PropertyMap.hxx index c0c31bb410d4..159651085773 100644 --- a/ucb/source/ucp/webdav-neon/PropertyMap.hxx +++ b/ucb/source/ucp/webdav-neon/PropertyMap.hxx @@ -41,7 +41,7 @@ struct equalPropertyName bool operator()( const css::beans::Property & p1, const css::beans::Property & p2 ) const { - return !!( p1.Name == p2.Name ); + return p1.Name == p2.Name; } }; |