diff options
| author | lordjaxom <lordjaxom> | 2005-01-26 20:43:01 +0000 |
|---|---|---|
| committer | lordjaxom <lordjaxom> | 2005-01-26 20:43:01 +0000 |
| commit | a4faa99f4f6b20dc97b679aafee8c9a24344a022 (patch) | |
| tree | 640193446e3f7441bd2ec0f6cb785622a541ca70 | |
| parent | 48183807856dff62b4a0942445f3009ef500c94b (diff) | |
| download | vdr-plugin-text2skin-a4faa99f4f6b20dc97b679aafee8c9a24344a022.tar.gz vdr-plugin-text2skin-a4faa99f4f6b20dc97b679aafee8c9a24344a022.tar.bz2 | |
- removed unnecessary struct
| -rw-r--r-- | display.h | 12 |
1 files changed, 3 insertions, 9 deletions
@@ -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 |
