From e77dfcf843f3e59be923c9494583b2d20015960e Mon Sep 17 00:00:00 2001 From: Sona Kurazyan Date: Tue, 8 Mar 2022 15:54:33 +0100 Subject: [PATCH] Fix the ambiguity when calling QLatin1String(0) This amends 736213bf662b68c4e80075cef317e5a029b490dd Change-Id: I2fc16eba31898eb621866f8612bb7d26c95b5435 Reviewed-by: Thiago Macieira --- src/corelib/text/qstring.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/corelib/text/qstring.h b/src/corelib/text/qstring.h index 59ddcc1beb..7b494ec2e3 100644 --- a/src/corelib/text/qstring.h +++ b/src/corelib/text/qstring.h @@ -85,6 +85,7 @@ class QLatin1String { public: constexpr inline QLatin1String() noexcept : m_size(0), m_data(nullptr) {} + Q_WEAK_OVERLOAD constexpr QLatin1String(std::nullptr_t) noexcept : QLatin1String() {} constexpr inline explicit QLatin1String(const char *s) noexcept : m_size(s ? qsizetype(QtPrivate::lengthHelperPointer(s)) : 0), m_data(s) {}