From a526c7c13d1442c3dea5461a832abe1d3b63a7e1 Mon Sep 17 00:00:00 2001 From: John Maguire Date: Thu, 6 Oct 2011 14:45:55 +0200 Subject: [PATCH] Make closures non-copyable. --- src/core/closure.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/closure.h b/src/core/closure.h index 6e648580f..872625a66 100644 --- a/src/core/closure.h +++ b/src/core/closure.h @@ -23,6 +23,7 @@ #include #include +#include #include #include "core/logging.h" @@ -47,7 +48,7 @@ class ClosureArgument : public ClosureArgumentWrapper { T data_; }; -class Closure : public QObject { +class Closure : public QObject, boost::noncopyable { Q_OBJECT public: