From 275c485ad459341c0b68262ea7947e0ba5197d1d Mon Sep 17 00:00:00 2001 From: lordjaxom Date: Sun, 2 Jan 2005 20:16:00 +0000 Subject: - made cxDisplay::GetType static, to habe access to the strings later --- xml/display.c | 6 +++--- xml/display.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'xml') diff --git a/xml/display.c b/xml/display.c index 207e9b3..a64fe1c 100644 --- a/xml/display.c +++ b/xml/display.c @@ -1,5 +1,5 @@ /* - * $Id: display.c,v 1.2 2005/01/02 20:01:25 lordjaxom Exp $ + * $Id: display.c,v 1.3 2005/01/02 20:16:00 lordjaxom Exp $ */ #include "xml/display.h" @@ -26,9 +26,9 @@ bool cxDisplay::ParseType(const std::string &Text) return false; } -const std::string &cxDisplay::GetType(void) const +const std::string &cxDisplay::GetType(eType Type) { - return DisplayNames[mType]; + return DisplayNames[Type]; } cxDisplays::cxDisplays(void) diff --git a/xml/display.h b/xml/display.h index df502b7..c7a617a 100644 --- a/xml/display.h +++ b/xml/display.h @@ -1,5 +1,5 @@ /* - * $Id: display.h,v 1.3 2005/01/02 20:01:45 lordjaxom Exp $ + * $Id: display.h,v 1.4 2005/01/02 20:16:00 lordjaxom Exp $ */ #ifndef VDR_TEXT2SKIN_DISPLAY_H @@ -39,8 +39,8 @@ private: public: cxDisplay(cxSkin *parent); + static const std::string &GetType(eType Type); bool ParseType(const std::string &Text); - const std::string &GetType(void) const; eType Type(void) const { return mType; } const txWindow *Windows(void) const { return mWindows; } -- cgit v1.2.3