aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-04-30 22:14:41 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-04-30 22:14:41 +0900
commit7c9037bdf4c2f6fee5d800d87e7f9dd9b4070990 (patch)
tree9280567c6525660376323b71bde72c7f10357884 /lib
parentb5d962b0f5dcd3497db8a4b3bada46bb666d08e1 (diff)
downloadlibquotient-7c9037bdf4c2f6fee5d800d87e7f9dd9b4070990.tar.gz
libquotient-7c9037bdf4c2f6fee5d800d87e7f9dd9b4070990.zip
ConnectionsGuard: suppress the copying assignment operator
It accidentally leaked through using QPointer::operator=
Diffstat (limited to 'lib')
-rw-r--r--lib/util.h1
1 files changed, 1 insertions, 0 deletions
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<T>::operator=;
private: