diff options
author | lordjaxom <lordjaxom> | 2004-12-17 19:56:21 +0000 |
---|---|---|
committer | lordjaxom <lordjaxom> | 2004-12-17 19:56:21 +0000 |
commit | ac920774dee48c0a85b3c6fc8c6785c1a5dd8f6d (patch) | |
tree | d572f41490e8949a5e7323bf94b59c4034438afe /theme.h | |
parent | b8f29c674cc0ccca207123342c1344bbd0f13796 (diff) | |
download | vdr-plugin-text2skin-ac920774dee48c0a85b3c6fc8c6785c1a5dd8f6d.tar.gz vdr-plugin-text2skin-ac920774dee48c0a85b3c6fc8c6785c1a5dd8f6d.tar.bz2 |
1.0-pre5v1.0-pre5
Diffstat (limited to 'theme.h')
-rw-r--r-- | theme.h | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -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<std::string,int> mMap; + typedef std::map<std::string,int> 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; } |