]> git.lyx.org Git - lyx.git/blobdiff - src/Spacing.C
include sys/time.h
[lyx.git] / src / Spacing.C
index 1bbb945f9f48e51ad0f743c3d2c349c9ca4f1f3b..cebf350dc7ae0ca87641ee616b4c87b13c0b0f18 100644 (file)
 
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
 #include "Lsstream.h"
 #include "Spacing.h"
 #include "LString.h"
@@ -70,7 +66,7 @@ void Spacing::writeFile(ostream & os, bool para) const
                os.setf(ios::showpoint|ios::fixed);
                os.precision(2);
                os << cmd << spacing_string[getSpace()]
-                  << " " << getValue() << " \n";
+                  << ' ' << getValue() << " \n";
        } else {
                os << cmd << spacing_string[getSpace()] << " \n";
        }
@@ -91,8 +87,8 @@ string const Spacing::writeEnvirBegin() const
        {
                ostringstream ost;
                ost << "\\begin{spacing}{"
-                   << getValue() << "}";
-               return ost.str().c_str();
+                   << getValue() << '}';
+               return STRCONV(ost.str());
        }
        }
        return string();