diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2020-01-23 17:55:07 +0100 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2020-02-27 10:48:25 +0100 |
commit | af837734b2259201f126b206bd5299497e080f7b (patch) | |
tree | 54957f85e5267ee0b181fcdeb836cabdb62fc151 /src/corelib/time/qdatetime_p.h | |
parent | 5a03dfa249a270fed2c73b6d6a64a79e80eda583 (diff) |
Pass QDate and QTime as value classes
It's what they are, so const refs are needless burden.
In the process, consolidate two of the affected methods (one of which
just adds another argument to the other's signature) into one.
Change-Id: I80de35ffe078a652d1999889dede0b10302abaa9
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/time/qdatetime_p.h')
-rw-r--r-- | src/corelib/time/qdatetime_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/time/qdatetime_p.h b/src/corelib/time/qdatetime_p.h index f4f00a8b9b..c500b023c4 100644 --- a/src/corelib/time/qdatetime_p.h +++ b/src/corelib/time/qdatetime_p.h @@ -110,11 +110,11 @@ public: DaylightMask = SetToStandardTime | SetToDaylightTime }; - static QDateTime::Data create(const QDate &toDate, const QTime &toTime, Qt::TimeSpec toSpec, + static QDateTime::Data create(QDate toDate, QTime toTime, Qt::TimeSpec toSpec, int offsetSeconds); #if QT_CONFIG(timezone) - static QDateTime::Data create(const QDate &toDate, const QTime &toTime, const QTimeZone & timeZone); + static QDateTime::Data create(QDate toDate, QTime toTime, const QTimeZone & timeZone); #endif // timezone StatusFlags m_status = StatusFlag(Qt::LocalTime << TimeSpecShift); |