diff options
author | lordjaxom <lordjaxom> | 2005-01-02 20:04:39 +0000 |
---|---|---|
committer | lordjaxom <lordjaxom> | 2005-01-02 20:04:39 +0000 |
commit | 302ee88bc80b9ac22b662cfab0442f932a222d0c (patch) | |
tree | 4a454e4628e5c8dc298a7ad00033a1f3af657de6 /xml/string.h | |
parent | e5fa5f7df0b1ba76845f9820e9aebedbeac0119b (diff) | |
download | vdr-plugin-text2skin-302ee88bc80b9ac22b662cfab0442f932a222d0c.tar.gz vdr-plugin-text2skin-302ee88bc80b9ac22b662cfab0442f932a222d0c.tar.bz2 |
- prepared string class for ad-hoc translation after language change
Diffstat (limited to 'xml/string.h')
-rw-r--r-- | xml/string.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xml/string.h b/xml/string.h index fe7149c..7f77dc9 100644 --- a/xml/string.h +++ b/xml/string.h @@ -1,5 +1,5 @@ /* - * $Id: string.h,v 1.6 2005/01/02 16:54:41 lordjaxom Exp $ + * $Id: string.h,v 1.7 2005/01/02 20:04:39 lordjaxom Exp $ */ #ifndef VDR_TEXT2SKIN_XML_STRING_H @@ -183,7 +183,7 @@ public: ~cxString(); bool Parse(const std::string &Text); - bool Parse(void) { return Parse(mOriginal); } + bool Parse(void) { return mOriginal.length() > 0 ? Parse(mOriginal) : true; } cxType Evaluate(void) const; void SetListIndex(uint Index, int Tab); |