summaryrefslogtreecommitdiff
path: root/include/o3tl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-04-24 12:32:15 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-04-24 12:36:24 +0200
commit1f7825a82909c2b6131441fdb6b1b8b51ed43306 (patch)
treea2c01d3b96ce63fd9a566197207114e8e0904625 /include/o3tl
parent39950c5b7c687016c8e746258064a4d3e497d415 (diff)
loplugin:simplifybool
Change-Id: I981d5a77cfe74ef81b235963820151cbea55370c
Diffstat (limited to 'include/o3tl')
-rw-r--r--include/o3tl/cow_wrapper.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/o3tl/cow_wrapper.hxx b/include/o3tl/cow_wrapper.hxx
index e7ca302468e3..c6c0716a6895 100644
--- a/include/o3tl/cow_wrapper.hxx
+++ b/include/o3tl/cow_wrapper.hxx
@@ -288,13 +288,13 @@ int cow_wrapper_client::queryUnmodified() const
template<class T, class P> inline bool operator==( const cow_wrapper<T,P>& a,
const cow_wrapper<T,P>& b )
{
- return a.same_object(b) ? true : *a == *b;
+ return a.same_object(b) || *a == *b;
}
template<class T, class P> inline bool operator!=( const cow_wrapper<T,P>& a,
const cow_wrapper<T,P>& b )
{
- return a.same_object(b) ? false : *a != *b;
+ return !a.same_object(b) && *a != *b;
}
template<class A, class B, class P> inline bool operator<( const cow_wrapper<A,P>& a,