Fix the ambiguity when calling QLatin1String(0)
This amends 736213bf66
Change-Id: I2fc16eba31898eb621866f8612bb7d26c95b5435
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
f875ff5180
commit
e77dfcf843
@ -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) {}
|
||||
|
Loading…
Reference in New Issue
Block a user