diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2005-11-26 14:16:02 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2005-11-26 14:16:02 +0100 |
commit | 22c5a38364cbe0df1b710e8cf9e31141adac441c (patch) | |
tree | ac1aa1cf817ee6e3f0d2cfcfc13ed8fca432b90c /tools.h | |
parent | 71ccb6acb62fed319367fc71108d5b3fff8f3a5b (diff) | |
download | vdr-22c5a38364cbe0df1b710e8cf9e31141adac441c.tar.gz vdr-22c5a38364cbe0df1b710e8cf9e31141adac441c.tar.bz2 |
Added a copy constructor to cString and fixed its assignment operator
Diffstat (limited to 'tools.h')
-rw-r--r-- | tools.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: tools.h 1.83 2005/11/05 10:54:39 kls Exp $ + * $Id: tools.h 1.84 2005/11/26 14:03:47 kls Exp $ */ #ifndef __TOOLS_H @@ -75,6 +75,7 @@ private: char *s; public: cString(const char *S = NULL, bool TakePointer = false); + cString(const cString &String); virtual ~cString(); operator const char * () const { return s; } // for use in (const char *) context const char * operator*() const { return s; } // for use in (const void *) context (printf() etc.) |