[sword-cvs] sword/include swbuf.h,1.15,1.16

sword@www.crosswire.org sword@www.crosswire.org
Fri, 27 Jun 2003 04:31:44 -0700


Update of /usr/local/cvsroot/sword/include
In directory www:/tmp/cvs-serv6823/include

Modified Files:
	swbuf.h 
Log Message:
no message

Index: swbuf.h
===================================================================
RCS file: /usr/local/cvsroot/sword/include/swbuf.h,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** swbuf.h	27 Jun 2003 01:41:06 -0000	1.15
--- swbuf.h	27 Jun 2003 11:31:41 -0000	1.16
***************
*** 179,183 ****
  	inline SWBuf operator +(char ch) const { return (*this) + SWBuf(ch); }
  
! 	int compare(const SWBuf &other) const { return strncmp(c_str(), other.c_str(), (length() < other.length()) ? length() : other.length()); }
  	inline bool operator ==(const SWBuf &other) const { return !compare(other); }
  	inline bool operator !=(const SWBuf &other) const { return compare(other); }
--- 179,183 ----
  	inline SWBuf operator +(char ch) const { return (*this) + SWBuf(ch); }
  
! 	int compare(const SWBuf &other) const { return strcmp(c_str(), other.c_str()); }
  	inline bool operator ==(const SWBuf &other) const { return !compare(other); }
  	inline bool operator !=(const SWBuf &other) const { return compare(other); }