Make closures non-copyable.

This commit is contained in:
John Maguire 2011-10-06 14:45:55 +02:00
parent 265b174dc9
commit a526c7c13d
1 changed files with 2 additions and 1 deletions

View File

@ -23,6 +23,7 @@
#include <QMetaMethod> #include <QMetaMethod>
#include <QObject> #include <QObject>
#include <boost/noncopyable.hpp>
#include <boost/scoped_ptr.hpp> #include <boost/scoped_ptr.hpp>
#include "core/logging.h" #include "core/logging.h"
@ -47,7 +48,7 @@ class ClosureArgument : public ClosureArgumentWrapper {
T data_; T data_;
}; };
class Closure : public QObject { class Closure : public QObject, boost::noncopyable {
Q_OBJECT Q_OBJECT
public: public: