From 338c946c31a3336bbaa700fda507dda478e8d09c Mon Sep 17 00:00:00 2001
From: Lars Kanis <kanis@comcard.de>
Date: Fri, 14 Mar 2014 09:27:20 +0100
Subject: [PATCH] We don't need defaultctor generation, but for FXChore and
 FXTimer we explicit can not use defaultctor generation, because these types
 are only usable as a pointer.

---
 swig-interfaces/ruby-typemaps.i | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/swig-interfaces/ruby-typemaps.i b/swig-interfaces/ruby-typemaps.i
index 0046dca..d51b8dd 100644
--- a/swig-interfaces/ruby-typemaps.i
+++ b/swig-interfaces/ruby-typemaps.i
@@ -420,6 +420,7 @@ inline void* to_FXEvent(VALUE obj){
 
 /* Output typemap for FXChore instances */
 %typemap(out) FXChore* "$result = FXRbGetRubyObj($1, \"$1_ltype\");";
+%nodefaultctor FXChore;
 
 /* Output typemap for FXComposite instances */
 %typemap(out) FXComposite * = FXObject *;
@@ -591,6 +592,7 @@ inline void* to_FXEvent(VALUE obj){
 
 /* Output typemap for FXTimer instances */
 %typemap(out) FXTimer* "$result = FXRbGetRubyObj($1, \"$1_ltype\");";
+%nodefaultctor FXTimer;
 
 /* Output typemap for FXTreeItem instances */
 %typemap(out) FXTreeItem * = FXObject *;
-- 
GitLab