[sword-svn] r1879 - trunk/utilities

chrislit at crosswire.org chrislit at crosswire.org
Thu Jan 5 01:32:36 MST 2006


Author: chrislit
Date: 2006-01-05 01:32:33 -0700 (Thu, 05 Jan 2006)
New Revision: 1879

Modified:
   trunk/utilities/xml2gbs.cpp
Log:
a few casts to permit compilation

Modified: trunk/utilities/xml2gbs.cpp
===================================================================
--- trunk/utilities/xml2gbs.cpp	2006-01-05 08:31:43 UTC (rev 1878)
+++ trunk/utilities/xml2gbs.cpp	2006-01-05 08:32:33 UTC (rev 1879)
@@ -226,7 +226,7 @@
        	  title = "";
 
           if (format == F_OSIS && longnames == false) {
-               	  strtmp = strstr(keybuffer.c_str(), "osisID=\"");
+               	  strtmp = (char*)strstr(keybuffer.c_str(), "osisID=\"");
                	  if (strtmp) {
                	    strtmp += 8;
                	    for (;*strtmp != '\"'; strtmp++) {
@@ -244,7 +244,7 @@
                   keybuffer = title;
           }
           else {
-               	  strtmp = strstr(keybuffer.c_str(), "type=\"");
+               	  strtmp = (char*)strstr(keybuffer.c_str(), "type=\"");
                	  if (strtmp) {
                	    strtmp += 6;
                	    for (;*strtmp != '\"'; strtmp++) {
@@ -257,7 +257,7 @@
                	    }
                	  }
 
-               	  strtmp = strstr(keybuffer.c_str(), "n=\"");
+               	  strtmp = (char*)strstr(keybuffer.c_str(), "n=\"");
                	  if (strtmp) {
                	    strtmp += 3;
                	    for (;*strtmp != '\"'; strtmp++) {
@@ -271,7 +271,7 @@
                	  }
 
                   if (format == F_OSIS) {
-                       	  strtmp = strstr(keybuffer.c_str(), "title=\"");
+                       	  strtmp = (char*)strstr(keybuffer.c_str(), "title=\"");
                 	  if (strtmp) {
                 	    strtmp += 7;
                 	    for (;*strtmp != '\"'; strtmp++) {
@@ -285,7 +285,7 @@
                 	  }
                   }
                   else if (format == F_THML) {
-                	  strtmp = strstr(keybuffer.c_str(), "title=\"");
+                	  strtmp = (char*)strstr(keybuffer.c_str(), "title=\"");
                 	  if (strtmp) {
                 	    strtmp += 7;
                 	    for (;*strtmp != '\"'; strtmp++) {



More information about the sword-cvs mailing list