aboutsummaryrefslogtreecommitdiff
path: root/lib/mxcreply.cpp
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-12-30 12:46:50 +0100
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-01-01 20:46:53 +0100
commita5a261b2c0dc60f99c8caa4729683d2780677f88 (patch)
tree01f030078db8a192904bf1c321071ee3ecf67b09 /lib/mxcreply.cpp
parent5b8ea1a0d419fda1729aaa81e34ad20e0dacef44 (diff)
downloadlibquotient-a5a261b2c0dc60f99c8caa4729683d2780677f88.tar.gz
libquotient-a5a261b2c0dc60f99c8caa4729683d2780677f88.zip
Define destructors out-of-line when unique/scoped ptr are involved
Once visibility kicks in, MSVC changes its ways and tries to instantiate Private classes wrapped in smart pointers upon their occurence in the header file - which leads to build breakage because of a missing destructor. Usually making the outer class destructor out-of-line helps to fix this (see RoomEvent, for one example).
Diffstat (limited to 'lib/mxcreply.cpp')
-rw-r--r--lib/mxcreply.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/mxcreply.cpp b/lib/mxcreply.cpp
index 0b6643fc..fb16c79f 100644
--- a/lib/mxcreply.cpp
+++ b/lib/mxcreply.cpp
@@ -38,6 +38,8 @@ 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