X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FSpacing.h;h=8d466864a24dfa1a42d6d42e6ba8fbfa94abb652;hb=2889b5fd3e8987d0c265ff4726a7fb6c6cb6c034;hp=f3e27123f4a41d205057f4ecbc314bf9969cf359;hpb=d0950acedaa91320340af398bb06d790486a2207;p=lyx.git diff --git a/src/Spacing.h b/src/Spacing.h index f3e27123f4..8d466864a2 100644 --- a/src/Spacing.h +++ b/src/Spacing.h @@ -54,15 +54,11 @@ public: string writeEnvirEnd() const; /// friend bool operator==(Spacing const & a, Spacing const & b) { - if (a.space == b.space && a.getValue() == b.getValue()) - return true; - return false; + return a.space == b.space && a.getValue() == b.getValue(); } /// friend bool operator!=(Spacing const & a, Spacing const & b) { - if (a.space == b.space && a.getValue() == b.getValue()) - return false; - return true; + return !(a == b); } private: ///