summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2008-02-20 05:00:42 +0000
committerphintuka <phintuka>2008-02-20 05:00:42 +0000
commita4a3079742faefa3865b976246dfc170ba995059 (patch)
tree44c3c85b87f119c3d2830c1503eb5755150131b5
parent9f7f9c89641dd29414081aae80b4bb3f435a9186 (diff)
downloadxineliboutput-a4a3079742faefa3865b976246dfc170ba995059.tar.gz
xineliboutput-a4a3079742faefa3865b976246dfc170ba995059.tar.bz2
m_Mode is constant during menu lifetime
-rw-r--r--menu.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/menu.c b/menu.c
index 6aee850e..4423b163 100644
--- a/menu.c
+++ b/menu.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: menu.c,v 1.49 2008-02-20 04:49:51 phintuka Exp $
+ * $Id: menu.c,v 1.50 2008-02-20 05:00:42 phintuka Exp $
*
*/
@@ -55,7 +55,7 @@
class cMenuBrowseFiles : public cOsdMenu
{
protected:
- eMainMenuMode m_Mode;
+ const eMainMenuMode m_Mode;
bool m_OnlyQueue;
char *m_CurrentDir;
char *m_ConfigLastDir;
@@ -101,10 +101,10 @@ cMenuBrowseFiles::cMenuBrowseFiles(eMainMenuMode mode, bool OnlyQueue) :
cOsdMenu( ( mode==ShowImages ? tr("Images") :
mode==ShowMusic ? (!OnlyQueue ? tr("Play music") : tr("Add to playlist")) :
/*mode==ShowFiles ?*/ tr("Play file")),
- 2, 4)
+ 2, 4),
+ m_Mode(mode)
{
m_CurrentDir = NULL;
- m_Mode = mode;
m_OnlyQueue = OnlyQueue;
m_ConfigLastDir = GetLastDir();