[sword-svn] r3140 - trunk/bindings

scribe at crosswire.org scribe at crosswire.org
Tue Mar 18 14:39:51 MST 2014


Author: scribe
Date: 2014-03-18 14:39:50 -0700 (Tue, 18 Mar 2014)
New Revision: 3140

Modified:
   trunk/bindings/flatapi.cpp
Log:
fixed char ** return types

Modified: trunk/bindings/flatapi.cpp
===================================================================
--- trunk/bindings/flatapi.cpp	2014-03-17 10:54:24 UTC (rev 3139)
+++ trunk/bindings/flatapi.cpp	2014-03-18 21:39:50 UTC (rev 3140)
@@ -1003,7 +1003,7 @@
 	retVal = (const char **)calloc(count+1, sizeof(const char *));
 	count = 0;
 	for (sword::StringList::iterator it = options.begin(); it != options.end(); ++it) {
-		stdstr((char **)&((*retVal)[count++]), it->c_str());
+		stdstr((char **)&(retVal[count++]), it->c_str());
 	}
 
 	hmgr->globalOptions = retVal;
@@ -1031,7 +1031,7 @@
 	retVal = (const char **)calloc(count+1, sizeof(const char *));
 	count = 0;
 	for (sword::StringList::iterator it = options.begin(); it != options.end(); ++it) {
-		stdstr((char **)&((*retVal)[count++]), it->c_str());
+		stdstr((char **)&(retVal[count++]), it->c_str());
 	}
 
 	hmgr->globalOptionValues = retVal;
@@ -1084,7 +1084,7 @@
 	retVal = (const char **)calloc(count+1, sizeof(const char *));
 	count = 0;
 	for (sword::StringList::iterator it = localeNames.begin(); it != localeNames.end(); ++it) {
-		stdstr((char **)&((*retVal)[count++]), it->c_str());
+		stdstr((char **)&(retVal[count++]), it->c_str());
 	}
 
 	hmgr->availableLocales = retVal;




More information about the sword-cvs mailing list