]> git.lyx.org Git - lyx.git/blobdiff - src/lyxgluelength.C
Move #includes out of header files.
[lyx.git] / src / lyxgluelength.C
index ae56a832689dc1a2902fd1f503d45d6615fe9e1b..9656b6ebaf2c92cdd7150403d7a92e694ab5d39d 100644 (file)
@@ -1,19 +1,17 @@
-/* This file is part of
- * ======================================================
+/**
+ * \file lyxgluelength.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- *           LyX, The Document Processor
+ * \author Lars Gullik Bjønnes
+ * \author Matthias Ettrich
+ * \author John Levon
  *
- *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-2001 The LyX Team.
- *
- * ====================================================== */
+ * Full author contact details are available in file CREDITS.
+ */
 
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
 #include "lyxgluelength.h"
 #include "lengthcommon.h"
 
@@ -52,7 +50,7 @@ string const LyXGlueLength::asString() const
        if (minus_.zero()) {
                if (len_.unit() != plus_.unit())
                        buffer << unit_name[len_.unit()];
-               buffer << "+" << plus_.value();
+               buffer << '+' << plus_.value();
                buffer << unit_name[plus_.unit()];
                return STRCONV(buffer.str());
        }
@@ -61,7 +59,7 @@ string const LyXGlueLength::asString() const
        if (plus_.zero()) {
                if (len_.unit() != minus_.unit())
                        buffer << unit_name[len_.unit()];
-               buffer << "-" << minus_.value();
+               buffer << '-' << minus_.value();
                buffer << unit_name[minus_.unit()];
                return STRCONV(buffer.str());
        }
@@ -80,8 +78,8 @@ string const LyXGlueLength::asString() const
        // this is so rare a case, why bother minimising units ?
 
        buffer << unit_name[len_.unit()];
-       buffer << "+" << plus_.value() << unit_name[plus_.unit()];
-       buffer << "-" << minus_.value() << unit_name[minus_.unit()];
+       buffer << '+' << plus_.value() << unit_name[plus_.unit()];
+       buffer << '-' << minus_.value() << unit_name[minus_.unit()];
 
        return STRCONV(buffer.str());
 }