diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-04-24 12:32:15 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-04-24 12:36:24 +0200 |
commit | 1f7825a82909c2b6131441fdb6b1b8b51ed43306 (patch) | |
tree | a2c01d3b96ce63fd9a566197207114e8e0904625 /include/o3tl | |
parent | loplugin:simplifybool (diff) | |
download | core-1f7825a82909c2b6131441fdb6b1b8b51ed43306.tar.gz core-1f7825a82909c2b6131441fdb6b1b8b51ed43306.zip |
loplugin:simplifybool
Change-Id: I981d5a77cfe74ef81b235963820151cbea55370c
Diffstat (limited to 'include/o3tl')
-rw-r--r-- | include/o3tl/cow_wrapper.hxx | 4 |
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, |