diff options
-rw-r--r-- | include/qdotnetdelegate.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/qdotnetdelegate.h b/include/qdotnetdelegate.h index 25fc3a8..63aaecb 100644 --- a/include/qdotnetdelegate.h +++ b/include/qdotnetdelegate.h @@ -22,6 +22,8 @@ class QDotNetDelegate : public QDotNetObject public: Q_DOTNET_OBJECT_INLINE(QDotNetDelegate, "System.Delegate"); + QDotNetDelegate() : QDotNetObject(nullptr) { } + T invoke(TArg... arg) const { return method("Invoke", fnInvoke).invoke(*this, arg...); |