more fixes to compilation warnings from HP-UX build log. About 30% more to go
<sigh> git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5259 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -72,16 +72,16 @@ public:
|
||||
bool operator!=(const wxTime& t) const { return m_time != t.m_time; }
|
||||
|
||||
friend wxTime WXDLLEXPORT operator+(const wxTime& t, long s)
|
||||
{ return wxTime(t.m_time + wxTimeSpan::Seconds(s)); }
|
||||
{ return wxTime(t.m_time + wxTimeSpan::Seconds((int)s)); }
|
||||
friend wxTime WXDLLEXPORT operator+(long s, const wxTime& t)
|
||||
{ return wxTime(t.m_time + wxTimeSpan::Seconds(s)); }
|
||||
{ return wxTime(t.m_time + wxTimeSpan::Seconds((int)s)); }
|
||||
|
||||
long operator-(const wxTime& t) const
|
||||
{ return (m_time - t.m_time).GetValue().ToLong(); }
|
||||
wxTime operator-(long s) const
|
||||
{ return wxTime(m_time - wxTimeSpan::Seconds(s)); }
|
||||
void operator+=(long s) { m_time += wxTimeSpan::Seconds(s); }
|
||||
void operator-=(long s) { m_time -= wxTimeSpan::Seconds(s); }
|
||||
{ return wxTime(m_time - wxTimeSpan::Seconds((int)s)); }
|
||||
void operator+=(long s) { m_time += wxTimeSpan::Seconds((int)s); }
|
||||
void operator-=(long s) { m_time -= wxTimeSpan::Seconds((int)s); }
|
||||
bool IsBetween(const wxTime& a, const wxTime& b) const
|
||||
{ return *this >= a && *this <= b; }
|
||||
|
||||
|
Reference in New Issue
Block a user