X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxgluelength.C;h=c7c90432293f931ee3363c06b256f65244ee42bb;hb=fe390e9da1538e20eabbc98977d845295f8e563d;hp=ae56a832689dc1a2902fd1f503d45d6615fe9e1b;hpb=6a1167adab9c33e0800cf1e7b314344a21cf93fe;p=lyx.git diff --git a/src/lyxgluelength.C b/src/lyxgluelength.C index ae56a83268..c7c9043229 100644 --- a/src/lyxgluelength.C +++ b/src/lyxgluelength.C @@ -10,10 +10,6 @@ #include -#ifdef __GNUG__ -#pragma implementation -#endif - #include "lyxgluelength.h" #include "lengthcommon.h" @@ -52,7 +48,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 +57,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 +76,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()); }