diff options
author | phintuka <phintuka> | 2009-05-29 15:05:19 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2009-05-29 15:05:19 +0000 |
commit | 1a530187fe3c7ea70f4ceae0935c3ad868c1f687 (patch) | |
tree | 74da6889e1d4229b38d44f75099854bdfc4aed41 | |
parent | 604fcef7c3220ab1ed1c7955cd0532dc7966337b (diff) | |
download | xineliboutput-1a530187fe3c7ea70f4ceae0935c3ad868c1f687.tar.gz xineliboutput-1a530187fe3c7ea70f4ceae0935c3ad868c1f687.tar.bz2 |
Fixed invalid cast from (const char *) to (char *)
-rw-r--r-- | menuitems.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/menuitems.c b/menuitems.c index 0a2ee2b4..609c6a6b 100644 --- a/menuitems.c +++ b/menuitems.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: menuitems.c,v 1.13 2008-11-20 11:46:31 rofafor Exp $ + * $Id: menuitems.c,v 1.14 2009-05-29 15:05:19 phintuka Exp $ * */ @@ -165,7 +165,7 @@ cFileListItem::cFileListItem(const char *name, bool IsDir, void cFileListItem::Set(void) { cString txt; - char *pt; + const char *pt; if(m_ShowFlags) { if(m_IsDir) { if(m_IsDvd) @@ -175,7 +175,7 @@ void cFileListItem::Set(void) } else { txt = cString::sprintf("%c\t%c\t%s", m_HasResume ? ' ' : '*', *m_SubFile ? 'S' : m_IsDvd ? 'D' : ' ', *m_Name); if(NULL != (pt = strrchr(txt,'.'))) - *pt = 0; + txt.Truncate(pt - txt); } } else { if(m_IsDir) { @@ -183,7 +183,7 @@ void cFileListItem::Set(void) } else { txt = m_Name; if(NULL != (pt = strrchr(txt,'.'))) - *pt = 0; + txt.Truncate(pt - txt); } } SetText(txt); |