X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Ftime%2Ftimedelta.cpp;fp=source%2Ftime%2Ftimedelta.cpp;h=f7b037ea7d154dac0e7b931106fbd2932a1dbbba;hb=80bbee2f401b4af71cb1b80508bdb0d2bb61fa40;hp=acf9eeffaec66925f6175154883ac33628ebab95;hpb=7ff2cc6e945c770c64d39089a2c27b33305495dd;p=libs%2Fcore.git diff --git a/source/time/timedelta.cpp b/source/time/timedelta.cpp index acf9eef..f7b037e 100644 --- a/source/time/timedelta.cpp +++ b/source/time/timedelta.cpp @@ -4,88 +4,72 @@ Copyright © 2006 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL */ #include +#include #include "timedelta.h" #include "units.h" using namespace std; -namespace Msp { -namespace Time { +namespace { void print_part(ostream &out, int64_t &value, int64_t unit, char sep, bool &first) { - if(value>=unit || !first) - { - if(first) - out<