From 626b2711a49e581babafd179ce362a1c88db8b85 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Sun, 19 May 2019 08:54:00 +0900 Subject: Connection: use QScopedPointer instead of unique_ptr While theoretically less robust (no equivalent of make_unique), QScopedPointer is navigable in Qt Creator debug views, unlike unique_ptr. Of course this will eventually be fixed; but given that inability to create an owning pointer object means sure abnormal termination of our code shortly afterwards, having make_unique in this particular case doesn't help in any way at all; so unique_ptr has zero advantages over QScopedPointer in this setting. --- lib/connection.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/connection.h') diff --git a/lib/connection.h b/lib/connection.h index 018c0459..cc2feed8 100644 --- a/lib/connection.h +++ b/lib/connection.h @@ -29,7 +29,6 @@ #include #include -#include namespace QMatrixClient { @@ -744,7 +743,7 @@ namespace QMatrixClient private: class Private; - std::unique_ptr d; + QScopedPointer d; /** * A single entry for functions that need to check whether the -- cgit v1.2.3