]> git.tdb.fi Git - libs/core.git/blobdiff - source/time/datetime.cpp
Update naming of internal variables and functions
[libs/core.git] / source / time / datetime.cpp
index f61e62e12ae2b3a18abc91fc6dcf9f8c953b06a5..e011f3b2ac0b8a3681048bd1c59e17194dbda03c 100644 (file)
@@ -29,7 +29,7 @@ inline unsigned char month_days(int y, unsigned char m)
 }
 
 template<typename T>
 }
 
 template<typename T>
-inline int cmp_(T a, T b)
+inline int _cmp(T a, T b)
 {
        if(a<b)
                return -1;
 {
        if(a<b)
                return -1;
@@ -231,19 +231,19 @@ DateTime &DateTime::operator-=(const TimeDelta &td)
 
 int DateTime::cmp(const DateTime &dt) const
 {
 
 int DateTime::cmp(const DateTime &dt) const
 {
-       if(int c = cmp_(year, dt.year))
+       if(int c = _cmp(year, dt.year))
                return c;
                return c;
-       if(int c = cmp_(month, dt.month))
+       if(int c = _cmp(month, dt.month))
                return c;
                return c;
-       if(int c = cmp_(mday, dt.mday))
+       if(int c = _cmp(mday, dt.mday))
                return c;
                return c;
-       if(int c = cmp_(hour, dt.hour))
+       if(int c = _cmp(hour, dt.hour))
                return c;
                return c;
-       if(int c = cmp_(minute, dt.minute))
+       if(int c = _cmp(minute, dt.minute))
                return c;
                return c;
-       if(int c = cmp_(second, dt.second))
+       if(int c = _cmp(second, dt.second))
                return c;
                return c;
-       if(int c = cmp_(usec, dt.usec))
+       if(int c = _cmp(usec, dt.usec))
                return c;
        return 0;
 }
                return c;
        return 0;
 }