]> git.tdb.fi Git - libs/core.git/blobdiff - source/time/timedelta.cpp
Style updates
[libs/core.git] / source / time / timedelta.cpp
index d94d8c5f0e7463ad8e454ab214b6b1126206b67a..c74ffcef4f71fa08de3124b65c1c5171e721da80 100644 (file)
@@ -25,8 +25,8 @@ void print_part(ostream &out, RawTime &value, RawTime unit, char sep, bool &firs
                out<<sep<<setw(2);
        
        out<<value/unit;
-       value%=unit;
-       first=false;
+       value %= unit;
+       first = false;
 }
 
 }
@@ -39,12 +39,12 @@ ostream &operator<<(ostream &out, const TimeDelta &td)
        ostringstream ss;
        ss.fill('0');
 
-       RawTime value=td.raw();
+       RawTime value = td.raw();
 
        if(value<0)
        {
                ss<<'-';
-               value=-value;
+               value = -value;
        }
 
        if(value==0)
@@ -54,14 +54,14 @@ ostream &operator<<(ostream &out, const TimeDelta &td)
        else if(value<1000000)
        {
                ss<<value/1000;
-               value%=1000;
+               value %= 1000;
                if(value)
                        ss<<'.'<<setw(3)<<value;
                ss<<"ms";
        }
        else
        {
-               bool first=true;
+               bool first = true;
                print_part(ss, value, 86400000000LL,  0,  first);
                print_part(ss, value, 3600000000LL,  '-', first);
                print_part(ss, value, 60000000LL,    ':', first);