From ac920774dee48c0a85b3c6fc8c6785c1a5dd8f6d Mon Sep 17 00:00:00 2001 From: lordjaxom Date: Fri, 17 Dec 2004 19:56:21 +0000 Subject: 1.0-pre5 --- theme.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'theme.h') diff --git a/theme.h b/theme.h index 0d6b167..17ed782 100644 --- a/theme.h +++ b/theme.h @@ -1,5 +1,5 @@ /* - * $Id: theme.h,v 1.1.1.1 2004/11/19 16:45:31 lordjaxom Exp $ + * $Id: theme.h,v 1.2 2004/12/17 19:56:16 lordjaxom Exp $ */ #ifndef VDR_TEXT2SKIN_THEME_H @@ -12,8 +12,10 @@ class cText2SkinTheme: public cText2SkinFile { private: - cTheme mTheme; - std::map mMap; + typedef std::map tThemeMap; + + cTheme mTheme; + tThemeMap mMap; protected: bool Parse(const char *Text); @@ -27,8 +29,9 @@ public: }; inline tColor cText2SkinTheme::Color(const std::string &Name) { - if (mMap.find(Name) != mMap.end()) - return mTheme.Color(mMap[Name]); + tThemeMap::iterator it = mMap.find(Name); + if (it != mMap.end()) + return mTheme.Color((*it).second); else return 0x00000000; } -- cgit v1.2.3