Change from TQRegExp::match to TQRegExp::search.

The definition of -UTQT_NO_COMPAT is no longer needed.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 9008735756)
r14.0.x
Slávek Banko 6 years ago
parent 79583b3ada
commit 666baa7c51
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -57,7 +57,7 @@ include( ConfigureChecks.cmake )
###### global compiler settings ###### global compiler settings
add_definitions( -DHAVE_CONFIG_H -UQT_NO_COMPAT ) add_definitions( -DHAVE_CONFIG_H )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" ) set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" ) set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )

@ -89,7 +89,7 @@ void Policy::operator() (AptProtocol* slave, const TQString& type, const TQStrin
received_sth = true; received_sth = true;
attribute_begin(*stream, i18n("Installed")); attribute_begin(*stream, i18n("Installed"));
if (rx_notinstalled.match(value) >= 0) if (rx_notinstalled.search(value) >= 0)
{ {
m_installed = TQString(); m_installed = TQString();
*stream << i18n("no"); *stream << i18n("no");
@ -105,7 +105,7 @@ void Policy::operator() (AptProtocol* slave, const TQString& type, const TQStrin
{ {
received_sth = true; received_sth = true;
bool has_candidate = (rx_notinstalled.match(value) == -1); bool has_candidate = (rx_notinstalled.search(value) == -1);
if (m_act && has_candidate) if (m_act && has_candidate)
{ {

Loading…
Cancel
Save