[sword-svn] r2113 - in trunk: include src/mgr utilities

scribe at www.crosswire.org scribe at www.crosswire.org
Sun Oct 14 17:16:28 MST 2007


Author: scribe
Date: 2007-10-14 17:16:27 -0700 (Sun, 14 Oct 2007)
New Revision: 2113

Modified:
   trunk/include/swmgr.h
   trunk/src/mgr/swmgr.cpp
   trunk/utilities/gbfidx.cpp
Log:
small cleanups


Modified: trunk/include/swmgr.h
===================================================================
--- trunk/include/swmgr.h	2007-10-14 06:22:32 UTC (rev 2112)
+++ trunk/include/swmgr.h	2007-10-15 00:16:27 UTC (rev 2113)
@@ -154,12 +154,6 @@
 
 
 public:
-	/** Enable / Disable debug output at runtime
-	 * Set this to true to get more verbose output from SWMgr at runtime. Set it to false to get no debug
-	 * output.
-	 * The default is "false".
-	 */
-	static bool debug;
 
 	static bool isICU;
 	static const char *globalConfPath;

Modified: trunk/src/mgr/swmgr.cpp
===================================================================
--- trunk/src/mgr/swmgr.cpp	2007-10-14 06:22:32 UTC (rev 2112)
+++ trunk/src/mgr/swmgr.cpp	2007-10-15 00:16:27 UTC (rev 2113)
@@ -356,7 +356,6 @@
 	SWConfig *sysConf = 0;
 
 	*configType = 0;
-	//debug=1;
 
 	// check for a sysConf passed in to us
 	SWLog::getSystemLog()->logDebug("Checking for provided SWConfig(\"sword.conf\")...");

Modified: trunk/utilities/gbfidx.cpp
===================================================================
--- trunk/utilities/gbfidx.cpp	2007-10-14 06:22:32 UTC (rev 2112)
+++ trunk/utilities/gbfidx.cpp	2007-10-15 00:16:27 UTC (rev 2113)
@@ -257,20 +257,20 @@
 	}
 
 	buf.setFormatted("%s.vss", fname);
-	if ((vfp = FileMgr::createPathAndFile(buf)) < 0) {
-		fprintf(stderr, "Couldn't open file: %s\n", buf);
+	if ((vfp = FileMgr::createPathAndFile(buf.c_str())) < 0) {
+		fprintf(stderr, "Couldn't open file: %s\n", buf.c_str());
 		exit(1);
 	}
 
 	buf.setFormatted("%s.cps", fname);
-	if ((cfp = FileMgr::createPathAndFile(buf)) < 0) {
-		fprintf(stderr, "Couldn't open file: %s\n", buf);
+	if ((cfp = FileMgr::createPathAndFile(buf.c_str())) < 0) {
+		fprintf(stderr, "Couldn't open file: %s\n", buf.c_str());
 		exit(1);
 	}
 
 	buf.setFormatted("%s.bks", fname);
-	if ((bfp = FileMgr::createPathAndFile(buf)) < 0) {
-		fprintf(stderr, "Couldn't open file: %s\n", buf);
+	if ((bfp = FileMgr::createPathAndFile(buf.c_str())) < 0) {
+		fprintf(stderr, "Couldn't open file: %s\n", buf.c_str());
 		exit(1);
 	}
 }




More information about the sword-cvs mailing list