Update of /cvsroot/gcblue/gcb_wx/include/common
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18303
Modified Files:
tcString.h
Log Message:
changed overloads to let = and + operators with const strings
Index: tcString.h
===================================================================
RCS file: /cvsroot/gcblue/gcb_wx/include/common/tcString.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** tcString.h 19 Oct 2003 17:46:01 -0000 1.2
--- tcString.h 28 Mar 2004 11:32:52 -0000 1.3
***************
*** 18,22 ****
--- 18,27 ----
*/
+ #ifndef _TCSTRING_H_
+ #define _TCSTRING_H_
+
+ #if _MSC_VER > 1000
#pragma once
+ #endif // _MSC_VER > 1000
#include <string>
***************
*** 41,49 ****
tcString& operator=(const char * s) {StdString::operator=(s);return *this;}
! tcString& operator=(tcString& s) {StdString::operator=(s);return *this;}
tcString& operator+=(const char * s) {StdString::operator+=(s);return *this;}
! tcString& operator+=(tcString& s) {StdString::operator+=(s);return *this;}
tcString() : StdString() {}
tcString(const char *s) : StdString(s) {}
};
--- 46,58 ----
tcString& operator=(const char * s) {StdString::operator=(s);return *this;}
! //tcString& operator=(tcString& s) {StdString::operator=(s);return *this;}
! tcString& operator=(const tcString& s) {StdString::operator=(s);return *this;}
tcString& operator+=(const char * s) {StdString::operator+=(s);return *this;}
! //tcString& operator+=(tcString& s) {StdString::operator+=(s);return *this;}
! tcString& operator+=(const tcString& s) {StdString::operator+=(s);return *this;}
tcString() : StdString() {}
tcString(const char *s) : StdString(s) {}
};
+ #endif // _TCSTRING_H_
+
|