]> git.lyx.org Git - lyx.git/blobdiff - src/Spacing.h
small changes to ButtonController usage
[lyx.git] / src / Spacing.h
index f3e27123f4a41d205057f4ecbc314bf9969cf359..120b14b97a875a06850acd39ee566ab6178e190a 100644 (file)
 #ifndef SPACING_H
 #define SPACING_H
 
+#ifdef __GNUG__
+#pragma interface
+#endif
+
 #include <iosfwd>
 
 #include "LString.h"
@@ -54,15 +58,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:
        ///