X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/03e11df5470fd64d9d9a669d0b50b84c2d714736..53c9228ead0c7c0955bdc882fc2ccc9aae8342ba:/include/wx/time.h diff --git a/include/wx/time.h b/include/wx/time.h index af2e71a502..101ee45a4a 100644 --- a/include/wx/time.h +++ b/include/wx/time.h @@ -21,7 +21,7 @@ #include "wx/datetime.h" #include "wx/date.h" -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(__APPLE__) #pragma interface "time.h" #endif @@ -47,7 +47,7 @@ public: wxTime() : m_time(wxDateTime::Now()) { } wxTime(clockTy s) : m_time((time_t)(s - wxTIME_EPOCH_DIFF)) { } void operator=(const wxTime& t) { m_time = t.m_time; } - wxTime(const wxTime& t) { *this = t; } + wxTime(const wxTime& t) : wxObject() { *this = t; } wxTime(hourTy h, minuteTy m, secondTy s = 0, bool WXUNUSED(dst) = FALSE) : m_time(h, m, s) { }