From 7c9037bdf4c2f6fee5d800d87e7f9dd9b4070990 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Mon, 30 Apr 2018 22:14:41 +0900 Subject: ConnectionsGuard: suppress the copying assignment operator It accidentally leaked through using QPointer::operator= --- lib/util.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/util.h') diff --git a/lib/util.h b/lib/util.h index 7ab1e20d..2a323cf3 100644 --- a/lib/util.h +++ b/lib/util.h @@ -78,6 +78,7 @@ namespace QMatrixClient } ConnectionsGuard(ConnectionsGuard&&) noexcept = default; ConnectionsGuard& operator=(ConnectionsGuard&&) noexcept = default; + ConnectionsGuard& operator=(const ConnectionsGuard&) = delete; using QPointer::operator=; private: -- cgit v1.2.3