[sword-cvs] sword/utilities/diatheke corediatheke.cpp,1.32,1.33

sword@www.crosswire.org sword@www.crosswire.org
Thu, 5 Feb 2004 03:24:38 -0700


Update of /cvs/core/sword/utilities/diatheke
In directory www:/tmp/cvs-serv27385/utilities/diatheke

Modified Files:
	corediatheke.cpp 
Log Message:

dglassey: change systemLocaleMgr to a function that returns the static object


Index: corediatheke.cpp
===================================================================
RCS file: /cvs/core/sword/utilities/diatheke/corediatheke.cpp,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- corediatheke.cpp	24 Dec 2003 20:51:36 -0000	1.32
+++ corediatheke.cpp	5 Feb 2004 10:24:36 -0000	1.33
@@ -23,7 +23,7 @@
 	bool types = false, descriptions = false, names = false;
 
 	if (!stricmp(key, "localelist")) {		
-		LocaleMgr *lm = &LocaleMgr::systemLocaleMgr;
+		LocaleMgr *lm = &LocaleMgr::systemLocaleMgr();
 		list<SWBuf> loclist =	lm->getAvailableLocales();
 		list<SWBuf>::iterator li = loclist.begin();
 		for (;li != loclist.end(); li++) {
@@ -92,7 +92,7 @@
 	char querytype = 0;	
 
 	if (locale) {
-		LocaleMgr::systemLocaleMgr.setDefaultLocaleName(locale);
+		LocaleMgr::systemLocaleMgr().setDefaultLocaleName(locale);
 	}
 	VerseKey vk;