summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2019-01-01 19:30:49 +0100
committerSlávek Banko <[email protected]>2019-01-01 19:48:09 +0100
commit666baa7c515febb89f9f228a768312fddbf266b3 (patch)
tree8fadc727680e56bec46d4af48f6add992df4cebe /src
parent79583b3adacd0d3930ecef478a8535a7f4797803 (diff)
downloadtdeio-apt-666baa7c515febb89f9f228a768312fddbf266b3.tar.gz
tdeio-apt-666baa7c515febb89f9f228a768312fddbf266b3.zip
Change from TQRegExp::match to TQRegExp::search.
The definition of -UTQT_NO_COMPAT is no longer needed. Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit 900873575600d6d7a6c5765cf444fdfe04608173)
Diffstat (limited to 'src')
-rw-r--r--src/parsers/policy.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parsers/policy.cpp b/src/parsers/policy.cpp
index 72ccadf..38c9576 100644
--- a/src/parsers/policy.cpp
+++ b/src/parsers/policy.cpp
@@ -89,7 +89,7 @@ void Policy::operator() (AptProtocol* slave, const TQString& type, const TQStrin
received_sth = true;
attribute_begin(*stream, i18n("Installed"));
- if (rx_notinstalled.match(value) >= 0)
+ if (rx_notinstalled.search(value) >= 0)
{
m_installed = TQString();
*stream << i18n("no");
@@ -105,7 +105,7 @@ void Policy::operator() (AptProtocol* slave, const TQString& type, const TQStrin
{
received_sth = true;
- bool has_candidate = (rx_notinstalled.match(value) == -1);
+ bool has_candidate = (rx_notinstalled.search(value) == -1);
if (m_act && has_candidate)
{