diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-19 12:01:04 -0600 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2012-06-19 19:42:53 +0200 |
commit | 39356ff58b6a5a76b0ee7fa85c538598ededdeff (patch) | |
tree | a1b23858695a8eb832455abc977da3a9160a661b /klinkstatus/src/engine/searchmanager.cpp | |
parent | a177b05ccc4f6a94c52944e4015831d766058b0e (diff) | |
download | tdewebdev-39356ff58b6a5a76b0ee7fa85c538598ededdeff.tar.gz tdewebdev-39356ff58b6a5a76b0ee7fa85c538598ededdeff.zip |
Remove additional unneeded tq method conversions
(cherry picked from commit 84c989c19db5daab602a67f47ca0f5fd7a2b53d2)
Diffstat (limited to 'klinkstatus/src/engine/searchmanager.cpp')
-rw-r--r-- | klinkstatus/src/engine/searchmanager.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/klinkstatus/src/engine/searchmanager.cpp b/klinkstatus/src/engine/searchmanager.cpp index 7f6c7fc1..bddbbb7a 100644 --- a/klinkstatus/src/engine/searchmanager.cpp +++ b/klinkstatus/src/engine/searchmanager.cpp @@ -217,7 +217,7 @@ void SearchManager::slotRootChecked(const LinkStatus * link, LinkChecker * check { current_depth_ = 1; - vector<LinkStatus*> no = tqchildren(LinkStatus::lastRedirection(&root_)); + vector<LinkStatus*> no = children(LinkStatus::lastRedirection(&root_)); emit signalLinksToCheckTotalSteps(no.size()); @@ -255,14 +255,14 @@ void SearchManager::slotRootChecked(const LinkStatus * link, LinkChecker * check checker = 0; } -vector<LinkStatus*> SearchManager::tqchildren(LinkStatus* link) +vector<LinkStatus*> SearchManager::children(LinkStatus* link) { - vector<LinkStatus*> tqchildren; + vector<LinkStatus*> children; if(!link || link->absoluteUrl().hasRef()) - return tqchildren; + return children; - vector<Node*> const& nodes = link->tqchildrenNodes(); + vector<Node*> const& nodes = link->childrenNodes(); int count = 0; for(uint i = 0; i != nodes.size(); ++i) @@ -278,7 +278,7 @@ vector<LinkStatus*> SearchManager::tqchildren(LinkStatus* link) if( (node->isLink() && checkable(url, *link) && - !Url::existUrl(url, tqchildren) && + !Url::existUrl(url, children) && !node->url().isEmpty()) || node->malformed() ) @@ -310,7 +310,7 @@ vector<LinkStatus*> SearchManager::tqchildren(LinkStatus* link) } Q_ASSERT(link->externalDomainDepth() <= external_domain_depth_); - tqchildren.push_back(ls); + children.push_back(ls); } if(count == 50) { @@ -319,7 +319,7 @@ vector<LinkStatus*> SearchManager::tqchildren(LinkStatus* link) } } - return tqchildren; + return children; } bool SearchManager::existUrl(KURL const& url, KURL const& url_parent) const @@ -513,7 +513,7 @@ void SearchManager::checkLinksSimultaneously(vector<LinkStatus*> const& links) ++ignored_links_; ls->setIgnored(true); ls->setErrorOccurred(true); - ls->setError(i18n("Protocol %1 not supported").tqarg(protocol)); + ls->setError(i18n("Protocol %1 not supported").arg(protocol)); ls->setStatus(LinkStatus::MALFORMED); ls->setChecked(true); slotLinkChecked(ls, 0); @@ -591,7 +591,7 @@ void SearchManager::addLevel() uint end_sub1 = ultimo_nivel[i].size(); for(uint j = 0; j != end_sub1; ++j) // links { - vector <LinkStatus*> f(tqchildren( LinkStatus::lastRedirection(((ultimo_nivel[i])[j])) )); + vector <LinkStatus*> f(children( LinkStatus::lastRedirection(((ultimo_nivel[i])[j])) )); if(f.size() != 0) { search_results_[search_results_.size() - 1].push_back(f); |