From 43addd52a72ee12615d4aa64774d94c0e37566dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Mon, 22 Oct 2018 04:14:01 +0200 Subject: Fix incorrect use of TQString() inside i18n(). Added controlled conversions to char* instead of automatic ascii conversions. The definition of -UTQT_NO_ASCII_CAST is no longer needed. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko (cherry picked from commit 5615796c0a10d5068dfb61ecbfbb9ab048ae63cd) --- src/compoundwidget.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/compoundwidget.cpp') diff --git a/src/compoundwidget.cpp b/src/compoundwidget.cpp index 66ba7b7..3a1ebc4 100644 --- a/src/compoundwidget.cpp +++ b/src/compoundwidget.cpp @@ -269,42 +269,42 @@ bool CompoundWidget::getOptions( bool& needRoot ) TQString targetFileValue = m_targetFileLineEdit->text( ); if( dataDirState && dataDirValue.isEmpty( )) - { KMessageBox::error( this, i18n( TQString( "Data directory name not specified" )), i18n( "Data directory name error" )); + { KMessageBox::error( this, i18n( "Data directory name not specified" ), i18n( "Data directory name error" )); return false; } if( decoyState && decoyValue.isEmpty( )) - { KMessageBox::error( this, i18n( TQString( "Decoy host list not specified" )), i18n( "Decoy hosts error" )); + { KMessageBox::error( this, i18n( "Decoy host list not specified" ), i18n( "Decoy hosts error" )); return false; } if( excludeState && excludeValue.isEmpty( )) - { KMessageBox::error( this, i18n( TQString( "Exclude hosts not specified" )), i18n( "Exclude hosts error" )); + { KMessageBox::error( this, i18n( "Exclude hosts not specified" ), i18n( "Exclude hosts error" )); return false; } if( excludeFileState && excludeFileValue.isEmpty( )) - { KMessageBox::error( this, i18n( TQString( "Exclude hosts file name not specified" )), i18n( "Exclude hosts file name error" )); + { KMessageBox::error( this, i18n( "Exclude hosts file name not specified" ), i18n( "Exclude hosts file name error" )); return false; } if( interfaceState && interfaceValue.isEmpty( )) - { KMessageBox::error( this, i18n( TQString( "Interface name not specified" )), i18n( "Interface name error" )); + { KMessageBox::error( this, i18n( "Interface name not specified" ), i18n( "Interface name error" )); return false; } if( sourceIPState && sourceIPValue.isEmpty( )) - { KMessageBox::error( this, i18n( TQString( "Source IP address not specified" )), i18n( "Source IP address error" )); + { KMessageBox::error( this, i18n( "Source IP address not specified" ), i18n( "Source IP address error" )); return false; } if( spoofMacState && spoofMacValue.isEmpty( )) - { KMessageBox::error( this, i18n( TQString( "Spoof MAC address not specified" )), i18n( "Spoof MAC address error" )); + { KMessageBox::error( this, i18n( "Spoof MAC address not specified" ), i18n( "Spoof MAC address error" )); return false; } if( targetFileState && targetFileValue.isEmpty( )) - { KMessageBox::error( this, i18n( TQString( "Target hosts file name not specified" )), i18n( "Target hosts file name error" )); + { KMessageBox::error( this, i18n( "Target hosts file name not specified" ), i18n( "Target hosts file name error" )); return false; } -- cgit v1.2.1