loplugin:simplifybool

Change-Id: I981d5a77cfe74ef81b235963820151cbea55370c
This commit is contained in:
Stephan Bergmann 2015-04-24 12:32:15 +02:00
parent 39950c5b7c
commit 1f7825a829

View File

@ -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,