]> git.lyx.org Git - lyx.git/blobdiff - src/lyxgluelength.C
changelogs
[lyx.git] / src / lyxgluelength.C
index a32bc6f775d8b6acfc6db7e22fd885e6bbf04e73..bd76faffe5c9838b498865116053c8a520e098c4 100644 (file)
 #include "lyxgluelength.h"
 #include "lengthcommon.h"
 
-#include "support/std_sstream.h"
+#include <sstream>
+
+using std::ostringstream;
+using std::string;
 
 
 LyXGlueLength::LyXGlueLength(LyXLength const & len)
@@ -43,7 +46,7 @@ string const LyXGlueLength::asString() const
 
        if (plus_.zero() && minus_.zero()) {
                buffer << unit_name[len_.unit()];
-               return STRCONV(buffer.str());
+               return buffer.str();
        }
 
        // just len and plus
@@ -52,7 +55,7 @@ string const LyXGlueLength::asString() const
                        buffer << unit_name[len_.unit()];
                buffer << '+' << plus_.value();
                buffer << unit_name[plus_.unit()];
-               return STRCONV(buffer.str());
+               return buffer.str();
        }
 
        // just len and minus
@@ -61,7 +64,7 @@ string const LyXGlueLength::asString() const
                        buffer << unit_name[len_.unit()];
                buffer << '-' << minus_.value();
                buffer << unit_name[minus_.unit()];
-               return STRCONV(buffer.str());
+               return buffer.str();
        }
 
        // ok, len, plus AND minus
@@ -72,7 +75,7 @@ string const LyXGlueLength::asString() const
                        buffer << unit_name[len_.unit()];
                buffer << "+-" << minus_.value();
                buffer << unit_name[minus_.unit()];
-               return STRCONV(buffer.str());
+               return buffer.str();
        }
 
        // this is so rare a case, why bother minimising units ?
@@ -81,7 +84,7 @@ string const LyXGlueLength::asString() const
        buffer << '+' << plus_.value() << unit_name[plus_.unit()];
        buffer << '-' << minus_.value() << unit_name[minus_.unit()];
 
-       return STRCONV(buffer.str());
+       return buffer.str();
 }
 
 
@@ -95,7 +98,7 @@ string const LyXGlueLength::asLatexString() const
                buffer << " plus " << plus_.value() << unit_name[plus_.unit()];
        if (!minus_.zero())
                buffer << " minus " << minus_.value() << unit_name[minus_.unit()];
-       return STRCONV(buffer.str());
+       return buffer.str();
 }