diff options
author | Ievgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io> | 2021-07-22 14:28:30 +0200 |
---|---|---|
committer | Ievgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io> | 2021-07-27 14:58:41 +0200 |
commit | 25170b324b7db872be2a2bde5c04eb0c1e3972e5 (patch) | |
tree | 496c80ebcc36382a494f33f85fe3273bc087fdf3 /src/corelib/time/qcalendar.h | |
parent | 7d49dc2222ddfd442face88c2243e28f5d26165f (diff) |
QCalendarBackend: Use QAnyStringView to create backends by name
Combine two implementations of QCalendarBackend::byName() accepting
QStringView and QLatin1String arguments into one accepting
QAnyStringView to reduce code duplication.
Add a note to QCalendar constructors accepting strings to do the
same for Qt 7.
Change-Id: Idfc3b9c61e22712543c723bd94fcd788da52780a
Pick-to: 6.2
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/corelib/time/qcalendar.h')
-rw-r--r-- | src/corelib/time/qcalendar.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/time/qcalendar.h b/src/corelib/time/qcalendar.h index c3d8800db8..a723209a1c 100644 --- a/src/corelib/time/qcalendar.h +++ b/src/corelib/time/qcalendar.h @@ -145,7 +145,9 @@ public: explicit QCalendar(); // Gregorian, optimised explicit QCalendar(System system); + // ### Qt 7: remove explicit QCalendar(QLatin1String name); + // ### Qt 7: use QAnyStringView explicit QCalendar(QStringView name); explicit QCalendar(SystemId id); |