X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fstrings%2Ffmt.cpp;h=60703d8a117c1a19d814cc2a2c63cadc2dca7d91;hb=HEAD;hp=ec7a7821bf3d493ca26fcd92458c46d30c3acee6;hpb=967785734be5c3fc6f75da122c2d93ebbb338271;p=libs%2Fcore.git diff --git a/source/strings/fmt.cpp b/source/strings/fmt.cpp index ec7a782..60703d8 100644 --- a/source/strings/fmt.cpp +++ b/source/strings/fmt.cpp @@ -26,6 +26,9 @@ void Fmt::parse(const char *s) break; } + if(align==LEFT) + fillc = ' '; + wd = 0; for(; *f; ++f) { @@ -88,19 +91,7 @@ void Fmt::parse(const char *s) Fmt &Fmt::reset() { - wd = 0; - prec = 6; - spos = false; - fillc = ' '; - base = DEC; - sbase = false; - fmode = AUTOFLT; - spoint = false; - align = RIGHT; - ucase = false; - type = STR; - - return *this; + return *this = Fmt(); } void Fmt::apply(ostream &out) const