diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2019-09-25 16:06:02 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2019-09-26 09:53:23 +0000 |
commit | 06a7aba731a8b0a3027d14b7aa37229d1ed46d32 (patch) | |
tree | bd8d56b91b15ccf8d2a6ca3ddd52d5a45a20f675 /src/corelib/time/qcalendar.h | |
parent | dc042c6deea7e90b4a9dfcffdc33cbe61df421bd (diff) |
Fix QCalendar::isValid(): make it const
Spotted in API change review, thanks to Albert Astals Cid.
Also added documentation of this method.
Change-Id: I2ef2c526a98b571a3cb3bb5f93d1952b1b0d63a9
Reviewed-by: Albert Astals Cid <albert.astals.cid@kdab.com>
Diffstat (limited to 'src/corelib/time/qcalendar.h')
-rw-r--r-- | src/corelib/time/qcalendar.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/time/qcalendar.h b/src/corelib/time/qcalendar.h index dd3df76e17..42c8e150c5 100644 --- a/src/corelib/time/qcalendar.h +++ b/src/corelib/time/qcalendar.h @@ -137,7 +137,7 @@ public: explicit QCalendar(QStringView name); // QCalendar is a trivially copyable value type. - bool isValid() { return d != nullptr; } + bool isValid() const { return d != nullptr; } // Date queries: int daysInMonth(int month, int year = Unspecified) const; |