diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2006-04-14 10:02:43 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2006-04-14 10:02:43 +0200 |
commit | b1dad5cb3c01877638086761cf6119d8b4e4db63 (patch) | |
tree | 3f9e5936fbd4b2cc06df58f50d2a9769be0a5067 /menuitems.c | |
parent | a45c1c9a28654a216db8b9b57d897c4010ce6b13 (diff) | |
download | vdr-b1dad5cb3c01877638086761cf6119d8b4e4db63.tar.gz vdr-b1dad5cb3c01877638086761cf6119d8b4e4db63.tar.bz2 |
Removed the unnecessary 'value' member from cMenuEditItem
Diffstat (limited to 'menuitems.c')
-rw-r--r-- | menuitems.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/menuitems.c b/menuitems.c index 56e5a4b0..1a362cc2 100644 --- a/menuitems.c +++ b/menuitems.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: menuitems.c 1.38 2006/04/14 09:59:16 kls Exp $ + * $Id: menuitems.c 1.39 2006/04/14 10:02:18 kls Exp $ */ #include "menuitems.h" @@ -24,21 +24,17 @@ const char *FileNameChars = " abcdefghijklmnopqrstuvwxyz0123456789-.#~,/_@"; cMenuEditItem::cMenuEditItem(const char *Name) { name = strdup(Name ? Name : "???"); - value = NULL; } cMenuEditItem::~cMenuEditItem() { free(name); - free(value); } void cMenuEditItem::SetValue(const char *Value) { - free(value); - value = strdup(Value); char *buffer = NULL; - asprintf(&buffer, "%s:\t%s", name, value); + asprintf(&buffer, "%s:\t%s", name, Value); SetText(buffer, false); cStatus::MsgOsdCurrentItem(buffer); } |