From 294efafa8952ef8c96127f59c5f6afe4682322ad Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 06:08:18 +0000 Subject: rename the following methods: tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kio-apt@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/parsers/parsers.cpp | 2 +- src/parsers/show.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/parsers') diff --git a/src/parsers/parsers.cpp b/src/parsers/parsers.cpp index 2789355..808150b 100644 --- a/src/parsers/parsers.cpp +++ b/src/parsers/parsers.cpp @@ -56,7 +56,7 @@ namespace Parsers // {} TQString mangle_version(TQString version) - { return "version_" + version.tqreplace(TQRegExp("[-:\\.\\+]"), TQString("_")); } + { return "version_" + version.replace(TQRegExp("[-:\\.\\+]"), TQString("_")); } } diff --git a/src/parsers/show.cpp b/src/parsers/show.cpp index 2d7b0c4..84ace04 100644 --- a/src/parsers/show.cpp +++ b/src/parsers/show.cpp @@ -22,8 +22,8 @@ static const TQString // Converts the special chars in orig into its HTML equivalents static TQString text2html(const TQString& orig) { TQString ret(orig); - ret = ret.tqreplace("<(?!a href)", "<"); - //ret = ret.tqreplace( TQRegExp("\n"), "
\n"); + ret = ret.replace("<(?!a href)", "<"); + //ret = ret.replace( TQRegExp("\n"), "
\n"); return ret; } @@ -185,7 +185,7 @@ void Show::operator() (AptProtocol* slave, const TQString& tag, const TQString& new_paragraph = false; } } - buffer += text2html(TQString(value).tqreplace(TQRegExp("(http://\\S+)"),TQString("\\1"))); + buffer += text2html(TQString(value).replace(TQRegExp("(http://\\S+)"),TQString("\\1"))); } else if (tag == "package_link") buffer += "buildURL("show", value).htmlURL() + "\">" + value + ""; -- cgit v1.2.1