[sword-cvs] sword/include utilxml.h,1.7,1.8

sword@www.crosswire.org sword@www.crosswire.org
Sat, 24 Jan 2004 11:47:43 -0700


Update of /cvs/core/sword/include
In directory www:/tmp/cvs-serv9163/include

Modified Files:
	utilxml.h 
Log Message:
Fixed yesterdays problem with a much better solution


Index: utilxml.h
===================================================================
RCS file: /cvs/core/sword/include/utilxml.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- utilxml.h	16 Jul 2003 04:55:43 -0000	1.7
+++ utilxml.h	24 Jan 2004 18:47:41 -0000	1.8
@@ -46,13 +46,14 @@
 	
 	void parse() const;
 	const char *getPart(const char *buf, int partNum = 0, char partSplit = '|') const;
+	static const char *nullstr;
 	
 public:
 	XMLTag(const char *tagString = 0);
 	~XMLTag();
 
 	void setText(const char *tagString);
-	inline const char *getName() const { return name; }
+	inline const char *getName() const { return (name)?name:nullstr; }
 
 	inline bool isEmpty() const {
 		if (!parsed)