QDateTime: fix unused function warning on non-Windows

Change-Id: I8fbf1f8b0ebfdf58cd72c724326227dc1610e746
Reviewed-by: John Layt <jlayt@kde.org>
bb10
Marc Mutz 2013-09-15 18:49:05 +02:00 committed by The Qt Project
parent 36e768cd71
commit 15c384f82f
1 changed files with 1 additions and 1 deletions

View File

@ -3228,12 +3228,12 @@ bool QDateTime::operator<(const QDateTime &other) const
\sa currentDateTime(), currentDateTimeUtc(), toTime_t(), toTimeSpec()
*/
#if defined(Q_OS_WIN)
static inline uint msecsFromDecomposed(int hour, int minute, int sec, int msec = 0)
{
return MSECS_PER_HOUR * hour + MSECS_PER_MIN * minute + 1000 * sec + msec;
}
#if defined(Q_OS_WIN)
QDate QDate::currentDate()
{
QDate d;