diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2020-07-30 15:30:47 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2020-08-20 09:01:22 +0200 |
commit | bddafeb2e1f3bf45b85c28ffd175905a2dc62121 (patch) | |
tree | 2fa888eb56c92e2992453a8c35afeea40ad4789d /src/corelib/time/qdatetime.h | |
parent | 92d4d490fe808479e3fe8885e5e5cabd20f3d03f (diff) |
Turn comments about passing QDate, QTime by value into docs
This is already changed throughout qtbase, aside from template
specializations where passing by reference is required by the
template. Revise QDate and QTime documentation to say they are best
passed by value.
Change-Id: I0b05f42b273bf1fd4c412247a9372113b7e40561
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/time/qdatetime.h')
-rw-r--r-- | src/corelib/time/qdatetime.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/time/qdatetime.h b/src/corelib/time/qdatetime.h index fedc17c947..b3e978ebf3 100644 --- a/src/corelib/time/qdatetime.h +++ b/src/corelib/time/qdatetime.h @@ -60,7 +60,7 @@ class QTimeZone; #endif class QDateTime; -class Q_CORE_EXPORT QDate // ### Qt 6: change to be used by value, not const & +class Q_CORE_EXPORT QDate { explicit constexpr QDate(qint64 julianDay) : jd(julianDay) {} public: @@ -156,7 +156,7 @@ private: }; Q_DECLARE_TYPEINFO(QDate, Q_MOVABLE_TYPE); -class Q_CORE_EXPORT QTime // ### Qt 6: change to be used by value, not const & +class Q_CORE_EXPORT QTime { explicit constexpr QTime(int ms) : mds(ms) {} |