diff --git a/include/wx/cppunit.h b/include/wx/cppunit.h index abf423e3f9..503ed3e8e0 100644 --- a/include/wx/cppunit.h +++ b/include/wx/cppunit.h @@ -116,17 +116,6 @@ assertEquals(int expected, assertEquals(size_t(expected), actual, sourceLine, message); } -// and another, slightly different, for checking that result of potentially -// different time_t type is the same as given time_t value -inline void -assertEquals(time_t expected, - long actual, - CppUnit::SourceLine sourceLine, - const std::string& message) -{ - assertEquals(expected, time_t(actual), sourceLine, message); -} - CPPUNIT_NS_END // Use this macro to compare a wxArrayString with the pipe-separated elements diff --git a/tests/datetime/datetimetest.cpp b/tests/datetime/datetimetest.cpp index 6add06a431..48611e4480 100644 --- a/tests/datetime/datetimetest.cpp +++ b/tests/datetime/datetimetest.cpp @@ -761,7 +761,7 @@ void DateTimeTestCase::TestTimeTicks() // GetValue() returns internal UTC-based representation, we need to // convert it to local TZ before comparing - long ticks = (dt.GetValue() / 1000).ToLong() + TZ_LOCAL.GetOffset(); + time_t ticks = (dt.GetValue() / 1000).ToLong() + TZ_LOCAL.GetOffset(); if ( dt.IsDST() ) ticks += 3600; CPPUNIT_ASSERT_EQUAL( d.gmticks, ticks + tzOffset );