summaryrefslogtreecommitdiff
path: root/tools.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-11-26 14:16:02 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2005-11-26 14:16:02 +0100
commit22c5a38364cbe0df1b710e8cf9e31141adac441c (patch)
treeac1aa1cf817ee6e3f0d2cfcfc13ed8fca432b90c /tools.h
parent71ccb6acb62fed319367fc71108d5b3fff8f3a5b (diff)
downloadvdr-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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools.h b/tools.h
index c344fce2..833ba847 100644
--- a/tools.h
+++ b/tools.h
@@ -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.)