aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiguel Costa <miguel.costa@qt.io>2025-07-27 19:31:05 +0200
committerMiguel Costa <miguel.costa@qt.io>2025-08-07 15:05:26 +0000
commit29bab49d50a69876b09b193783df2878386c421b (patch)
tree1e216f18bc06f8b425302be4505fb602b59b46aa
parentfe880a3ea023c62e8909e967adba5b6f0407136d (diff)
Add default ctor to QDotNetDelegateHEADdev
Change-Id: Iaa8be876b667d8c7f300dca8ee3c2bd24ac349d7 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
-rw-r--r--include/qdotnetdelegate.h2
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...);