summaryrefslogtreecommitdiff
path: root/tools.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2010-10-24 13:08:55 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2010-10-24 13:08:55 +0200
commit1c5ece6100d7dcb1015187a7e3ae73b41d509b16 (patch)
tree311941102526e2ab645bd38ad77918c27d4e1588 /tools.h
parentfbbcb8e9c88901b4a583fb688718b3dc6a5ceea2 (diff)
downloadvdr-1c5ece6100d7dcb1015187a7e3ae73b41d509b16.tar.gz
vdr-1c5ece6100d7dcb1015187a7e3ae73b41d509b16.tar.bz2
Added cString::operator=(const char *String)
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 95c35ff3..1a80a8d4 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 2.4 2009/12/23 15:14:39 kls Exp $
+ * $Id: tools.h 2.5 2010/10/24 13:06:27 kls Exp $
*/
#ifndef __TOOLS_H
@@ -171,6 +171,7 @@ public:
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.)
cString &operator=(const cString &String);
+ cString &operator=(const char *String);
cString &Truncate(int Index); ///< Truncate the string at the given Index (if Index is < 0 it is counted from the end of the string).
static cString sprintf(const char *fmt, ...) __attribute__ ((format (printf, 1, 2)));
static cString sprintf(const char *fmt, va_list &ap);