QTimeZone: mark ctors as explicit
An int is not a proper representation for a QTimeZone, so don't provide
an implicit conversion from it. OTOH, {QByteArray, int, QString, QString}
_does_ nicely represent a QTimeZone, so explicitly state the implicitness
of that constructor so {}-init continues to work in C++11.
Change-Id: I865a6b38b8ab3c577625b7b08efbfc98914abfbe
Reviewed-by: John Layt <jlayt@kde.org>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
bb10
parent
9e78ab4587
commit
6128f4efb4
|
|
@ -78,8 +78,8 @@ public:
|
|||
|
||||
QTimeZone();
|
||||
explicit QTimeZone(const QByteArray &olsenId);
|
||||
QTimeZone(int offsetSeconds);
|
||||
QTimeZone(const QByteArray &zoneId, int offsetSeconds, const QString &name,
|
||||
explicit QTimeZone(int offsetSeconds);
|
||||
/*implicit*/ QTimeZone(const QByteArray &zoneId, int offsetSeconds, const QString &name,
|
||||
const QString &abbreviation, QLocale::Country country = QLocale::AnyCountry,
|
||||
const QString &comment = QString());
|
||||
QTimeZone(const QTimeZone &other);
|
||||
|
|
|
|||
Loading…
Reference in New Issue