diff options
Diffstat (limited to 'akregator/src/librss/tools_p.cpp')
-rw-r--r-- | akregator/src/librss/tools_p.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/akregator/src/librss/tools_p.cpp b/akregator/src/librss/tools_p.cpp index e12bea883..48b4a52a0 100644 --- a/akregator/src/librss/tools_p.cpp +++ b/akregator/src/librss/tools_p.cpp @@ -24,15 +24,15 @@ time_t parseISO8601Date(const TQString &s) return 0; // error // FIXME: imho this is done in KRFCDate::parseDateISO8601() automatically, so we could omit it? -fo - if (s.find('T') != -1) + if (s.tqfind('T') != -1) return KRFCDate::parseDateISO8601(s); else return KRFCDate::parseDateISO8601(s + "T12:00:00"); } -TQString childNodesAsXML(const TQDomNode& parent) +TQString childNodesAsXML(const TQDomNode& tqparent) { - TQDomNodeList list = parent.childNodes(); + TQDomNodeList list = tqparent.childNodes(); TQString str; TQTextStream ts( &str, IO_WriteOnly ); for (uint i = 0; i < list.count(); ++i) @@ -117,11 +117,11 @@ static TQString extractAtomContent(const TQDomElement& e) return TQString(); } -TQString extractNode(const TQDomNode &parent, const TQString &elemName, bool isInlined) +TQString extractNode(const TQDomNode &tqparent, const TQString &elemName, bool isInlined) { - TQDomNode node = parent.namedItem(elemName); + TQDomNode node = tqparent.namedItem(elemName); if (node.isNull()) - return TQString::null; + return TQString(); TQDomElement e = node.toElement(); TQString result = e.text().stripWhiteSpace(); // let's assume plain text @@ -140,14 +140,14 @@ TQString extractNode(const TQDomNode &parent, const TQString &elemName, bool isI result = result.simplifyWhiteSpace(); } - return result.isEmpty() ? TQString::null : result; + return result.isEmpty() ? TQString() : result; } -TQString extractTitle(const TQDomNode & parent) +TQString extractTitle(const TQDomNode & tqparent) { - TQDomNode node = parent.namedItem(TQString::tqfromLatin1("title")); + TQDomNode node = tqparent.namedItem(TQString::tqfromLatin1("title")); if (node.isNull()) - return TQString::null; + return TQString(); TQString result = node.toElement().text(); @@ -155,7 +155,7 @@ TQString extractTitle(const TQDomNode & parent) result = result.simplifyWhiteSpace(); if (result.isEmpty()) - return TQString::null; + return TQString(); return result; } @@ -186,7 +186,7 @@ static void authorFromString(const TQString& strp, TQString& name, TQString& ema // after removing the email, str might have // the format "(Foo M. Bar)". We cut off - // parentheses if there are any. However, if + // tqparentheses if there are any. However, if // str is of the format "Foo M. Bar (President)", // we should not cut anything. |