[sword-cvs] sword/src/utilfuns utilxml.cpp,1.16,1.17

sword at www.crosswire.org sword at www.crosswire.org
Sun May 16 13:59:09 MST 2004


Committed by: scribe

Update of /cvs/core/sword/src/utilfuns
In directory www:/tmp/cvs-serv21967/src/utilfuns

Modified Files:
	utilxml.cpp 
Log Message:
no message

Index: utilxml.cpp
===================================================================
RCS file: /cvs/core/sword/src/utilfuns/utilxml.cpp,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- utilxml.cpp	16 Apr 2004 11:24:56 -0000	1.16
+++ utilxml.cpp	16 May 2004 20:59:05 -0000	1.17
@@ -173,11 +173,15 @@
 
 
 const char *XMLTag::getAttribute(const char *attribName, int partNum, char partSplit) const {
+
 	if (!parsed)
 		parse();
 
 	StringPairMap::const_iterator it = attributes.find(attribName);
-	const char *retVal = (it == attributes.end()) ? 0 : it->second.c_str();
+
+	const char *retVal = 0;
+	if (it != attributes.end()) 
+		it->second.c_str();
 	if ((retVal) && (partNum > -1))
 		retVal = getPart(retVal, partNum, partSplit);
 




More information about the sword-cvs mailing list