]> git.tdb.fi Git - libs/core.git/blobdiff - source/strings/fmt.cpp
Use default member initializers and constructor delegation
[libs/core.git] / source / strings / fmt.cpp
index 07484dd61c7fe27d514ee4a325e1d2fe7bbe366d..60703d8a117c1a19d814cc2a2c63cadc2dca7d91 100644 (file)
@@ -91,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