[sword-svn] r2274 - trunk/bindings/swig

benpmorgan at crosswire.org benpmorgan at crosswire.org
Tue Mar 3 16:53:05 MST 2009


Author: benpmorgan
Date: 2009-03-03 16:53:05 -0700 (Tue, 03 Mar 2009)
New Revision: 2274

Modified:
   trunk/bindings/swig/rendercallback.h
Log:
Added explicit constructors for the user data structures as it wouldn't 
build on msys without them.



Modified: trunk/bindings/swig/rendercallback.h
===================================================================
--- trunk/bindings/swig/rendercallback.h	2009-03-03 23:50:42 UTC (rev 2273)
+++ trunk/bindings/swig/rendercallback.h	2009-03-03 23:53:05 UTC (rev 2274)
@@ -51,7 +51,11 @@
 	// Create a class which can be inherited externally
 #ifndef SWIG
 	using sword::OSISHTMLHREF::MyUserData;
-    class MyOsisUserData : public MyUserData {};
+    class MyOsisUserData : public MyUserData {
+        public:
+        MyOsisUserData(const SWModule *module, const SWKey *key):
+            MyUserData(module, key) {};
+    };
 #endif
     
 	PyOSISHTMLHREF(RenderCallback* callback)
@@ -118,7 +122,11 @@
 	// Create a class which can be inherited externally
 #ifndef SWIG
 	using sword::ThMLHTMLHREF::MyUserData;
-	class MyThmlUserData : public MyUserData {};
+	class MyThmlUserData : public MyUserData {
+        public:
+        MyThmlUserData(const SWModule *module, const SWKey *key):
+            MyUserData(module, key) {};
+    };
 #endif
 
 	PyThMLHTMLHREF(RenderCallback* callback)
@@ -183,6 +191,9 @@
 class OSISData : 
 #ifndef SWIG
 public PyOSISHTMLHREF::MyOsisUserData {
+   public:
+   OSISData(const SWModule *module, const SWKey *key):
+       PyOSISHTMLHREF::MyOsisUserData(module, key) {};
 #else
 // trick SWIG into thinking this is not inherited from an inner class...
 public sword::BasicFilterUserData 
@@ -206,6 +217,10 @@
 class ThMLData : 
 #ifndef SWIG
 public PyThMLHTMLHREF::MyThmlUserData {
+   public:
+   ThMLData(const SWModule *module, const SWKey *key):
+       PyThMLHTMLHREF::MyThmlUserData(module, key) {};
+
 #else
 // trick SWIG into thinking this is not inherited from an inner class...
 public sword::BasicFilterUserData 




More information about the sword-cvs mailing list