cmake conversion #1

Merged
SlavekB merged 1 commits from feat/cmakeConv into master 5 years ago

@ -57,7 +57,7 @@ include( ConfigureChecks.cmake )
###### global compiler settings
add_definitions( -DHAVE_CONFIG_H -UTQT_NO_COMPAT )
add_definitions( -DHAVE_CONFIG_H )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
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;
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)
{

Loading…
Cancel
Save