Kaydet (Commit) 1f7825a8 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:simplifybool

Change-Id: I981d5a77cfe74ef81b235963820151cbea55370c
üst 39950c5b
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment