diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-01-05 16:09:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-05 16:09:04 +0100 |
commit | 7ed5f8d90ce25431fb120698c8a079807df7c13a (patch) | |
tree | a51da22df1818b915817c0c83b6766b5d5a67bc0 /lib/mxcreply.cpp | |
parent | c1bfb156844aa3c53b1588c48ba2002143199510 (diff) | |
parent | 9fc7bfd5ef1daf84307d553941855fb377fddc7c (diff) | |
download | libquotient-7ed5f8d90ce25431fb120698c8a079807df7c13a.tar.gz libquotient-7ed5f8d90ce25431fb120698c8a079807df7c13a.zip |
Merge pull request #532 from quotient-im/kitsune/implptr
ImplPtr
Diffstat (limited to 'lib/mxcreply.cpp')
-rw-r--r-- | lib/mxcreply.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/mxcreply.cpp b/lib/mxcreply.cpp index fb16c79f..d3cc3c37 100644 --- a/lib/mxcreply.cpp +++ b/lib/mxcreply.cpp @@ -17,7 +17,7 @@ public: }; MxcReply::MxcReply(QNetworkReply* reply) - : d(std::make_unique<Private>(reply)) + : d(makeImpl<Private>(reply)) { reply->setParent(this); connect(d->m_reply, &QNetworkReply::finished, this, [this]() { @@ -28,7 +28,7 @@ MxcReply::MxcReply(QNetworkReply* reply) } MxcReply::MxcReply(QNetworkReply* reply, Room* room, const QString &eventId) - : d(std::make_unique<Private>(reply)) + : d(makeImpl<Private>(reply)) { reply->setParent(this); connect(d->m_reply, &QNetworkReply::finished, this, [this, room, eventId]() { @@ -38,8 +38,6 @@ MxcReply::MxcReply(QNetworkReply* reply, Room* room, const QString &eventId) }); } -MxcReply::~MxcReply() = default; - #if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0) #define ERROR_SIGNAL errorOccurred #else @@ -47,6 +45,7 @@ MxcReply::~MxcReply() = default; #endif MxcReply::MxcReply() + : d(ZeroImpl<Private>()) { static const auto BadRequestPhrase = tr("Bad Request"); QMetaObject::invokeMethod(this, [this]() { |