summaryrefslogtreecommitdiff
path: root/src/method.h
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-02 19:48:50 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-02 19:48:50 +0100
commit3c0d819176620f118b04931e8444e03f62577faf (patch)
treefe1458232d8e33bcd8a09c22ce609a34f83ed252 /src/method.h
parent51f4788b2b51a21894ae49821abc67c2fab4a68a (diff)
added copy and move constructors to some classes
Diffstat (limited to 'src/method.h')
-rw-r--r--src/method.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/method.h b/src/method.h
index 8b545b0..f583fc8 100644
--- a/src/method.h
+++ b/src/method.h
@@ -34,6 +34,13 @@ public:
Method(const char *name, int flags, const Arguments &args) : Callable(name, args), _type(4), _flags(flags) { _callback.m0 = nullptr; }
/**
+ * Copy and move constructors
+ * @param that
+ */
+ Method(const Method &that) : Callable(that), _type(that._type), _flags(that._flags), _callback(that._callback) {}
+ Method(Method &&that) : Callable(std::move(that)), _type(that._type), _flags(that._flags), _callback(that._callback) {}
+
+ /**
* Destructor
* @param type
* @param callback
@@ -86,7 +93,6 @@ private:
/**
* Access flags (protected, public, abstract, final, private, etc)
* @var int
- * @todo use this
*/
int _flags;