From 1b098d9f7f6ceea44f9f8ae549af2dabf1756503 Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 12:54:24 +0000 Subject: Utilisateur : Fcolin Date : 5/02/04 Heure : 18:32 Archivé dans $/Bus/Ivy Commentaire: (vss 7) --- Bus/Ivy/DataTypes.h | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'Bus') diff --git a/Bus/Ivy/DataTypes.h b/Bus/Ivy/DataTypes.h index 2267de7..daf9470 100644 --- a/Bus/Ivy/DataTypes.h +++ b/Bus/Ivy/DataTypes.h @@ -79,18 +79,21 @@ public: str.append( right.ptr, right.size); return str; } - const string& operator +=(string s) - { - return append( s.ptr, s.size ); - } - const string& operator +=(const char* s) + + void operator +=(string s) { - return append( s, strlen(s) ); + append( s.ptr, s.size ); } - const string& operator +=(char c) + + void operator +=(const char* s) { - return append( &c, 1); + append( s, strlen(s) ); } + + void operator +=(char c) + { append( &c, 1);} + + string operator +(string s) const { string str ( ptr, size ); str.append( s.ptr, s.size ); return str; } string operator +(const char c) const -- cgit v1.1