aboutsummaryrefslogtreecommitdiff
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:19:26 +0900
commitecf7b64d3ca30ff607ca399f24800a50594b7ebf (patch)
tree2a36796499e290ffe707fdeaa125c777f6122bf0
parentf5af25428212f139c59941bb294a184242c8b5e0 (diff)
downloadlibquotient-ecf7b64d3ca30ff607ca399f24800a50594b7ebf.tar.gz
libquotient-ecf7b64d3ca30ff607ca399f24800a50594b7ebf.zip
ConnectionsGuard: suppress the copying assignment operator
It accidentally leaked through using QPointer::operator=
-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: