summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlordjaxom <lordjaxom>2005-01-26 20:43:01 +0000
committerlordjaxom <lordjaxom>2005-01-26 20:43:01 +0000
commita4faa99f4f6b20dc97b679aafee8c9a24344a022 (patch)
tree640193446e3f7441bd2ec0f6cb785622a541ca70
parent48183807856dff62b4a0942445f3009ef500c94b (diff)
downloadvdr-plugin-text2skin-a4faa99f4f6b20dc97b679aafee8c9a24344a022.tar.gz
vdr-plugin-text2skin-a4faa99f4f6b20dc97b679aafee8c9a24344a022.tar.bz2
- removed unnecessary struct
-rw-r--r--display.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/display.h b/display.h
index d2ff817..9f592c2 100644
--- a/display.h
+++ b/display.h
@@ -1,5 +1,5 @@
/*
- * $Id: display.h,v 1.9 2005/01/20 17:07:09 lordjaxom Exp $
+ * $Id: display.h,v 1.10 2005/01/26 20:43:01 lordjaxom Exp $
*/
#ifndef VDR_TEXT2SKIN_SKIN_H
@@ -212,13 +212,7 @@ private:
std::string mTitle;
- struct tListItem {
- std::string text;
-
- tListItem(const std::string &Text): text(Text) {}
-
- bool operator!=(const tListItem &b) { return b.text != text; }
- };
+ typedef std::string tListItem;
typedef std::vector<tListItem> tListItems;
tListItems mItems;
@@ -246,7 +240,7 @@ public:
inline bool cText2SkinDisplayTracks::HasTabText(int Index, int n)
{
if (Index < 0 || mItems.size () > (uint)Index && n <= 0)
- return mItems[Index].text.length() > 0;
+ return mItems[Index].length() > 0;
return false;
}
#endif