diff --git a/src/network/access/qhsts_p.h b/src/network/access/qhsts_p.h index 0bc0a5d975..f3d5da9d23 100644 --- a/src/network/access/qhsts_p.h +++ b/src/network/access/qhsts_p.h @@ -85,8 +85,7 @@ private: struct DomainLabel { - DomainLabel() = default; - DomainLabel(const QString &name) : label(name) { } + DomainLabel(const QString &name = QString()) : label(name), domainIndex(0) {} bool operator < (const DomainLabel &rhs) const { return label < rhs.label; }