loplugin:simplifybool
Change-Id: I981d5a77cfe74ef81b235963820151cbea55370c
This commit is contained in:
parent
39950c5b7c
commit
1f7825a829
@ -288,13 +288,13 @@ int cow_wrapper_client::queryUnmodified() const
|
|||||||
template<class T, class P> inline bool operator==( const cow_wrapper<T,P>& a,
|
template<class T, class P> inline bool operator==( const cow_wrapper<T,P>& a,
|
||||||
const cow_wrapper<T,P>& b )
|
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,
|
template<class T, class P> inline bool operator!=( const cow_wrapper<T,P>& a,
|
||||||
const cow_wrapper<T,P>& b )
|
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,
|
template<class A, class B, class P> inline bool operator<( const cow_wrapper<A,P>& a,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user