summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2015-06-14 14:04:07 +0200
committerJulien Nabet <serval2412@yahoo.fr>2015-06-14 14:04:07 +0200
commit4d8cccbdacc58ee2def5cc38a4ef92734414aac2 (patch)
tree61683669576367bb3d60dd9f34417d539feff3af /ucb
parentb226928c6d5d094359b970b64a063b243d4fc84c (diff)
cppcheck: redundantCondition [part2]
Change-Id: I23e8a4834fa7858adb292ce0a4dfa5dab1ab5f00
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/webdav-neon/webdavcontent.cxx2
-rw-r--r--ucb/source/ucp/webdav/webdavcontent.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/ucb/source/ucp/webdav-neon/webdavcontent.cxx b/ucb/source/ucp/webdav-neon/webdavcontent.cxx
index ec74be984cd7..8df17d3e5102 100644
--- a/ucb/source/ucp/webdav-neon/webdavcontent.cxx
+++ b/ucb/source/ucp/webdav-neon/webdavcontent.cxx
@@ -2296,7 +2296,7 @@ void Content::insert(
*/
// ==> Complain on PUT, continue on MKCOL.
- if ( !bTransient || ( bTransient && !bCollection ) )
+ if ( !bTransient || !bCollection )
{
ucb::UnsupportedNameClashException aEx(
OUString( "Unable to write without overwrite!" ),
diff --git a/ucb/source/ucp/webdav/webdavcontent.cxx b/ucb/source/ucp/webdav/webdavcontent.cxx
index 70f84047aa7c..d74cc7ced9ae 100644
--- a/ucb/source/ucp/webdav/webdavcontent.cxx
+++ b/ucb/source/ucp/webdav/webdavcontent.cxx
@@ -2443,7 +2443,7 @@ void Content::insert(
*/
// ==> Complain on PUT, continue on MKCOL.
- if ( !bTransient || ( bTransient && !bCollection ) )
+ if ( !bTransient || !bCollection )
{
#undef ERROR
ucb::UnsupportedNameClashException aEx(