diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-07-09 21:01:00 +0200 |
---|---|---|
committer | Sona Kurazyan <sona.kurazyan@qt.io> | 2020-08-27 18:58:21 +0200 |
commit | 84f36909479b9bdf411040e6a9f9f7822b2fba73 (patch) | |
tree | b6d065b1c89202197ea0608397a99fb9880bd029 /src/corelib/plugin/quuid.h | |
parent | 9067b8a456d8fbf4e308ff618d7bc8e8d6f57426 (diff) |
Make QUUid constructors from string like types explicit
I don't think we want to have implicit conversion
from a const char * or a QByteArray to a QUuid.
Change-Id: Idfe7450ce15b89e295aa7af7ccf1fc94f5acd4f9
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/plugin/quuid.h')
-rw-r--r-- | src/corelib/plugin/quuid.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/plugin/quuid.h b/src/corelib/plugin/quuid.h index 6acdc95ac6..cc5745992c 100644 --- a/src/corelib/plugin/quuid.h +++ b/src/corelib/plugin/quuid.h @@ -123,13 +123,13 @@ public: } #endif - QUuid(const QString &); + explicit QUuid(const QString &); static QUuid fromString(QStringView string) noexcept; static QUuid fromString(QLatin1String string) noexcept; - QUuid(const char *); + explicit QUuid(const char *); QString toString() const; QString toString(StringFormat mode) const; // ### Qt6: merge with previous - QUuid(const QByteArray &); + explicit QUuid(const QByteArray &); QByteArray toByteArray() const; QByteArray toByteArray(StringFormat mode) const; // ### Qt6: merge with previous QByteArray toRfc4122() const; |