[sword-cvs] sword/include swbuf.h,1.34,1.35

sword@www.crosswire.org sword@www.crosswire.org
Thu, 15 Apr 2004 04:17:55 -0700


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

Modified Files:
	swbuf.h 
Log Message:
fixed a SWBuf bug (joachim)

Index: swbuf.h
===================================================================
RCS file: /cvs/core/sword/include/swbuf.h,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- swbuf.h	10 Apr 2004 09:27:34 -0000	1.34
+++ swbuf.h	15 Apr 2004 11:17:52 -0000	1.35
@@ -182,7 +182,7 @@
 	* @param str Append this.
 	* @param max Append only max chars.
  	*/
-	void append(const char *str, long max = -1);
+	void append(const char *str, const long max = -1);
 
 	/**
 	* SWBuf::append - appends a value to the current value of this SWBuf
@@ -190,14 +190,14 @@
 	* @param str Append this.
 	* @param max Append only max chars.
 	*/
-	inline void append(const SWBuf &str, long max = -1) { append(str.c_str(), max); }
+	inline void append(const SWBuf &str, const long max = -1) { append(str.c_str(), max); }
 
 	/**
 	* SWBuf::append - appends a value to the current value of this SWBuf
 	* If the allocated memory is not enough, it will be resized accordingly.
 	* @param ch Append this.
 	*/
-	inline void append(char ch) {
+	inline void append(const char ch) {
 		assureMore(1);
 		*end++ = ch;
 		*end = 0;