From 3eb5b15d800f575b08eb1fc97b365d3e33e4bc7e Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Thu, 12 May 2016 16:10:54 -0700 Subject: QDateTimePrivate refactor: static'fy the date/time manipulators This commit moves QDateTimePrivate functions setTimeSpec, setDateTime, getDateTime, checkValidDateTime and refreshDateTime outside the class. Like the previous commit, this is done in preparation for the "Short QDateTime Optimization" as the "msecs" field will be placed in the short data, if possible. By making them file-level static, this also improves code generation, as the compiler doesn't know whether it has to emit the class members for out-of-line use or not. Change-Id: I06bae9392f534e45b3f1ffff144df4d73cbc9184 Reviewed-by: Edward Welbourne --- src/corelib/tools/qdatetime_p.h | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/corelib/tools/qdatetime_p.h') diff --git a/src/corelib/tools/qdatetime_p.h b/src/corelib/tools/qdatetime_p.h index 1b7bfc4ad1..6a5173f812 100644 --- a/src/corelib/tools/qdatetime_p.h +++ b/src/corelib/tools/qdatetime_p.h @@ -125,13 +125,6 @@ public: QTimeZone m_timeZone; #endif // QT_BOOTSTRAPPED - void setTimeSpec(Qt::TimeSpec spec, int offsetSeconds); - void setDateTime(const QDate &date, const QTime &time); - QPair getDateTime() const; - - void checkValidDateTime(); - void refreshDateTime(); - #ifndef QT_BOOTSTRAPPED static qint64 zoneMSecsToEpochMSecs(qint64 msecs, const QTimeZone &zone, QDate *localDate = 0, QTime *localTime = 0); -- cgit v1.2.3