]> git.lyx.org Git - lyx.git/blobdiff - src/lyxgluelength.C
add missing typename
[lyx.git] / src / lyxgluelength.C
index 1342bbf7dbf8acbaae124b3505c3de8e3805f3e3..0469b8e7357448e6b84f8d634bf25c7e0859dbb7 100644 (file)
@@ -2,7 +2,7 @@
  * ======================================================
  *
  *           LyX, The Document Processor
- *     
+ *
  *           Copyright 1995 Matthias Ettrich
  *           Copyright 1995-2001 The LyX Team.
  *
 
 #include "Lsstream.h"
 
-#if 0
-namespace {
-// this is now here and in lyxlenght.h
-
-int const num_units = LyXLength::UNIT_NONE;
-
-// I am not sure if "mu" should be possible to select (Lgb)
-char const * unit_name[num_units] = { "sp", "pt", "bp", "dd",
-                                     "mm", "pc", "cc", "cm",
-                                     "in", "ex", "em", "mu",
-                                     "%",  "c%", "p%", "l%" };
-
-}
-#endif
 
 LyXGlueLength::LyXGlueLength(LyXLength const & len)
        : len_(len)
@@ -72,7 +58,7 @@ string const LyXGlueLength::asString() const
                                        buffer << len_.value() << unit_name[len_.unit()]
                                               << "+-" << plus_.value()
                                               << unit_name[plus_.unit()];
-       
+
                                else
                                        buffer << len_.value() << unit_name[len_.unit()]
                                               << '+' << plus_.value()
@@ -87,13 +73,13 @@ string const LyXGlueLength::asString() const
                                buffer << len_.value() << unit_name[len_.unit()]
                                       << '+' << plus_.value()
                                       << unit_name[plus_.unit()];
-       
+
        else
                if (!minus_.zero())
                        if (len_.unit() == minus_.unit())
                                buffer << len_.value() << '-' << minus_.value()
                                       << unit_name[len_.unit()];
-       
+
                        else
                                buffer << len_.value() << unit_name[len_.unit()]
                                       << '-' << minus_.value()
@@ -153,8 +139,8 @@ LyXLength const & LyXGlueLength::minus() const
 bool operator==(LyXGlueLength const & l1, LyXGlueLength const & l2)
 {
        return l1.len() == l2.len()
-                && l1.plus() == l2.plus()
-                && l1.minus() == l2.minus();
+                && l1.plus() == l2.plus()
+                && l1.minus() == l2.minus();
 }