summaryrefslogtreecommitdiffstats
path: root/src/compoundwidget.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2018-10-22 04:14:01 +0200
committerSlávek Banko <slavek.banko@axis.cz>2018-10-22 04:15:35 +0200
commit5615796c0a10d5068dfb61ecbfbb9ab048ae63cd (patch)
treeb56f944df027ed4bbb0531a85e57986382cb79bd /src/compoundwidget.cpp
parent45e95597267482ddb1023b33ebeeb50597d91508 (diff)
downloadknmap-5615796c0a10d5068dfb61ecbfbb9ab048ae63cd.tar.gz
knmap-5615796c0a10d5068dfb61ecbfbb9ab048ae63cd.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>
Diffstat (limited to 'src/compoundwidget.cpp')
-rw-r--r--src/compoundwidget.cpp16
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;
}