From e228e74a720c8f0b7e48c0909a2a29ddc7620252 Mon Sep 17 00:00:00 2001 From: Dimitar Petrovski Date: Sun, 2 Oct 2011 17:54:14 +0200 Subject: do not use member pointers --- dish.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'dish.h') diff --git a/dish.h b/dish.h index e6a5b9b..b4efe1c 100644 --- a/dish.h +++ b/dish.h @@ -249,7 +249,7 @@ class DishDescriptor { public: DishDescriptor(); virtual ~DishDescriptor(); - const char* getName(void) const { return name?name->c_str():""; } + const char* getName(void) const { return name.c_str(); } const char* getShortText(void); const char *getDescription(void); // const char* getShortText(void) const { return shortText?shortText->c_str():""; } @@ -267,9 +267,9 @@ public: protected: // Decompress the byte array and stores the result to a text string void Decompress(unsigned char Tid, CharArray data); - string *name; // name of the event - string *shortText; // usually the episode name - string *description; // description of the event + string name; // name of the event + string shortText; // usually the episode name + string description; // description of the event unsigned char *decompressed; unsigned char DishTheme; unsigned char DishCategory; -- cgit v1.2.3