diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2008-02-17 13:47:12 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2008-02-17 13:47:12 +0100 |
commit | dc7c5464fc07b31b904ea8118f104a7cb289dd24 (patch) | |
tree | 9132d34f62d493b6d66059003eb36eb341a36ef1 /tools.h | |
parent | 54b4d4e4e752ce10142c1f0c61f39c3782e460d9 (diff) | |
download | vdr-dc7c5464fc07b31b904ea8118f104a7cb289dd24.tar.gz vdr-dc7c5464fc07b31b904ea8118f104a7cb289dd24.tar.bz2 |
Introduced 'operator const void * ()' in cString
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.112 2008/02/16 13:00:16 kls Exp $ + * $Id: tools.h 1.113 2008/02/17 13:41:27 kls Exp $ */ #ifndef __TOOLS_H @@ -156,6 +156,7 @@ public: cString(const char *S = NULL, bool TakePointer = false); cString(const cString &String); virtual ~cString(); + operator const void * () const { return s; } // to catch cases where operator*() should be used 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); |