diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2018-10-22 04:14:01 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2018-10-22 18:43:15 +0200 |
commit | 43addd52a72ee12615d4aa64774d94c0e37566dd (patch) | |
tree | e960b66daedbd0ff69a4ee0a4a1a20cfabbdaa81 /src/compoundwidget.cpp | |
parent | 83fb5c2a160acd743fe6beab0dca68a5ad8faf21 (diff) | |
download | knmap-43addd52a72ee12615d4aa64774d94c0e37566dd.tar.gz knmap-43addd52a72ee12615d4aa64774d94c0e37566dd.zip |
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.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 5615796c0a10d5068dfb61ecbfbb9ab048ae63cd)
Diffstat (limited to 'src/compoundwidget.cpp')
-rw-r--r-- | src/compoundwidget.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
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; } |