summaryrefslogtreecommitdiff
path: root/theme.h
diff options
context:
space:
mode:
Diffstat (limited to 'theme.h')
-rw-r--r--theme.h13
1 files changed, 8 insertions, 5 deletions
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<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;
}