[sword-svn] r2226 - trunk/src/modules

chrislit at crosswire.org chrislit at crosswire.org
Tue Jan 13 23:28:46 MST 2009


Author: chrislit
Date: 2009-01-13 23:28:45 -0700 (Tue, 13 Jan 2009)
New Revision: 2226

Modified:
   trunk/src/modules/swmodule.cpp
Log:


Modified: trunk/src/modules/swmodule.cpp
===================================================================
--- trunk/src/modules/swmodule.cpp	2009-01-14 04:50:05 UTC (rev 2225)
+++ trunk/src/modules/swmodule.cpp	2009-01-14 06:28:45 UTC (rev 2226)
@@ -726,18 +726,18 @@
 					SWBuf morph = "";
 					for (int i = 1; i <= parts; i++) {
 						SWBuf key = "";
-						key = (parts == 1) ? "Lemma" : SWBuf().setFormatted("Lemma.%d", i);
+						key = (parts == 1) ? "Lemma" : SWBuf().setFormatted("Lemma.%d", i).c_str();
 						AttributeValue::iterator li = it->second.find(key);
 						if (li != it->second.end()) {
 							if (i > 1) lemma += " ";
-							key = (parts == 1) ? "LemmaClass" : SWBuf().setFormatted("LemmaClass.%d", i);
+							key = (parts == 1) ? "LemmaClass" : SWBuf().setFormatted("LemmaClass.%d", i).c_str();
 							AttributeValue::iterator lci = it->second.find(key);
 							if (lci != it->second.end()) {
 								lemma += lci->second + ":";
 							}
 							lemma += li->second;
 						}
-						key = (parts == 1) ? "Morph" : SWBuf().setFormatted("Morph.%d", i);
+						key = (parts == 1) ? "Morph" : SWBuf().setFormatted("Morph.%d", i).c_str();
 						li = it->second.find(key);
 						// silly.  sometimes morph counts don't equal lemma counts
 						if (i == 1 && parts != 1 && li == it->second.end()) {
@@ -745,7 +745,7 @@
 						}
 						if (li != it->second.end()) {
 							if (i > 1) morph += " ";
-							key = (parts == 1) ? "MorphClass" : SWBuf().setFormatted("MorphClass.%d", i);
+							key = (parts == 1) ? "MorphClass" : SWBuf().setFormatted("MorphClass.%d", i).c_str();
 							AttributeValue::iterator lci = it->second.find(key);
 							// silly.  sometimes morph counts don't equal lemma counts
 							if (i == 1 && parts != 1 && lci == it->second.end()) {




More information about the sword-cvs mailing list