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

scribe at crosswire.org scribe at crosswire.org
Sun Aug 18 08:41:23 MST 2013


Author: scribe
Date: 2013-08-18 08:41:23 -0700 (Sun, 18 Aug 2013)
New Revision: 2964

Modified:
   trunk/bindings/swig/swkey.i
Log:
updated swkey to be the same as swbuf and use GHellings' rename method instead of the lengthy extend method


Modified: trunk/bindings/swig/swkey.i
===================================================================
--- trunk/bindings/swig/swkey.i	2013-08-14 14:02:02 UTC (rev 2963)
+++ trunk/bindings/swig/swkey.i	2013-08-18 15:41:23 UTC (rev 2964)
@@ -11,12 +11,5 @@
 %include "swkey.h"
 
 #ifndef SWIGPERL
-%extend sword::SWKey {
-        %extend {
-                char *__str__() {
-                        return const_cast<char *>(self->getText());
-                }
-        }
-
-};
+%rename(__str__) sword::SWKey::operator const char *;
 #endif




More information about the sword-cvs mailing list