X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/34138703c3997ce676a1e713d9ff9eb020640da7..e487524e492809638b7e335937c41fd432458a54:/include/wx/time.h diff --git a/include/wx/time.h b/include/wx/time.h index 74461c55af..aed87d86ee 100644 --- a/include/wx/time.h +++ b/include/wx/time.h @@ -14,7 +14,7 @@ #include "wx/object.h" -#if USE_TIMEDATE +#if wxUSE_TIMEDATE #ifdef __GNUG__ #pragma interface "time.h" @@ -49,6 +49,7 @@ private: // static member functions public: wxTime(); // current time wxTime(clockTy s) { sec = s; } + void operator=(const wxTime& t) { sec = t.sec; } // Ordering required for some compilers wxTime(const wxTime& t) { (*this) = t ; } wxTime(hourTy h, minuteTy m, secondTy s =0, bool dst =FALSE); wxTime(const wxDate&, hourTy h =0, minuteTy m =0, secondTy s=0, bool dst =FALSE); @@ -61,7 +62,6 @@ public: bool operator>=(const wxTime& t) const { return sec >= t.sec; } bool operator==(const wxTime& t) const { return sec == t.sec; } bool operator!=(const wxTime& t) const { return sec != t.sec; } - void operator=(const wxTime& t) { sec = t.sec; } friend wxTime operator+(const wxTime& t, long s) { return wxTime(t.sec+s); } friend wxTime operator+(long s, const wxTime& t) { return wxTime(t.sec+s); } long operator-(const wxTime& t) const { return sec - t.sec; } @@ -91,7 +91,7 @@ public: }; #endif - // USE_TIMEDATE + // wxUSE_TIMEDATE #endif // _WX_TIMEH__