added missing wxDateSpan methods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7486 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -479,6 +479,18 @@ inline wxDateSpan& wxDateSpan::operator+=(const wxDateSpan& other)
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline wxDateSpan& wxDateSpan::Add(const wxDateSpan& other)
|
||||||
|
{
|
||||||
|
return *this += other;
|
||||||
|
}
|
||||||
|
|
||||||
|
inline wxDateSpan wxDateSpan::Add(const wxDateSpan& other) const
|
||||||
|
{
|
||||||
|
wxDateSpan ds(*this);
|
||||||
|
ds.Add(other);
|
||||||
|
return ds;
|
||||||
|
}
|
||||||
|
|
||||||
inline wxDateSpan& wxDateSpan::Multiply(int factor)
|
inline wxDateSpan& wxDateSpan::Multiply(int factor)
|
||||||
{
|
{
|
||||||
m_years *= factor;
|
m_years *= factor;
|
||||||
@@ -491,7 +503,9 @@ inline wxDateSpan& wxDateSpan::Multiply(int factor)
|
|||||||
|
|
||||||
inline wxDateSpan wxDateSpan::Multiply(int factor) const
|
inline wxDateSpan wxDateSpan::Multiply(int factor) const
|
||||||
{
|
{
|
||||||
return wxDateSpan(*this).Multiply(factor);
|
wxDateSpan ds(*this);
|
||||||
|
ds.Multiply(factor);
|
||||||
|
return ds;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline wxDateSpan wxDateSpan::Negate() const
|
inline wxDateSpan wxDateSpan::Negate() const
|
||||||
@@ -509,6 +523,23 @@ inline wxDateSpan& wxDateSpan::Neg()
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline wxDateSpan& wxDateSpan::operator-=(const wxDateSpan& other)
|
||||||
|
{
|
||||||
|
return *this += other.Negate();
|
||||||
|
}
|
||||||
|
|
||||||
|
inline wxDateSpan& wxDateSpan::Subtract(const wxDateSpan& other)
|
||||||
|
{
|
||||||
|
return *this -= other;
|
||||||
|
}
|
||||||
|
|
||||||
|
inline wxDateSpan wxDateSpan::Subtract(const wxDateSpan& other) const
|
||||||
|
{
|
||||||
|
wxDateSpan ds(*this);
|
||||||
|
ds.Subtract(other);
|
||||||
|
return ds;
|
||||||
|
}
|
||||||
|
|
||||||
#undef MILLISECONDS_PER_DAY
|
#undef MILLISECONDS_PER_DAY
|
||||||
|
|
||||||
#undef MODIFY_AND_RETURN
|
#undef MODIFY_AND_RETURN
|
||||||
|
Reference in New Issue
Block a user