]> git.lyx.org Git - lyx.git/blobdiff - src/Spacing.h
some small stuff before the meeting begins for real
[lyx.git] / src / Spacing.h
index f3e27123f4a41d205057f4ecbc314bf9969cf359..8d466864a24dfa1a42d6d42e6ba8fbfa94abb652 100644 (file)
@@ -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:
        ///