path: root/src/corelib/tools/qdatetime_p.h
diff options
authorThiago Macieira <>2016-05-12 16:10:54 -0700
committerThiago Macieira <>2016-06-10 17:56:57 +0000
commit3eb5b15d800f575b08eb1fc97b365d3e33e4bc7e (patch)
treec3713aa6b3f555bdf15b114e0f61e16ec1103bd9 /src/corelib/tools/qdatetime_p.h
parent97eae54083d5a0a29b9ea6f0d3c3c02802986958 (diff)
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 <>
Diffstat (limited to 'src/corelib/tools/qdatetime_p.h')
1 files changed, 0 insertions, 7 deletions
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;
- void setTimeSpec(Qt::TimeSpec spec, int offsetSeconds);
- void setDateTime(const QDate &date, const QTime &time);
- QPair<QDate, QTime> getDateTime() const;
- void checkValidDateTime();
- void refreshDateTime();
static qint64 zoneMSecsToEpochMSecs(qint64 msecs, const QTimeZone &zone,
QDate *localDate = 0, QTime *localTime = 0);