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 04:15:35 +0200 |
commit | 5615796c0a10d5068dfb61ecbfbb9ab048ae63cd (patch) | |
tree | b56f944df027ed4bbb0531a85e57986382cb79bd /src/commonwidget.cpp | |
parent | 45e95597267482ddb1023b33ebeeb50597d91508 (diff) | |
download | knmap-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/commonwidget.cpp')
-rw-r--r-- | src/commonwidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commonwidget.cpp b/src/commonwidget.cpp index 7a13902..1287f73 100644 --- a/src/commonwidget.cpp +++ b/src/commonwidget.cpp @@ -96,7 +96,7 @@ bool CommonWidget::buildPortRangesTables( const boolPtr tcpPorts, const boolPtr portRange = portRange.right( portRange.length( ) - 2 ); } else - { KMessageBox::error( this, i18n( TQString( "Internal error - Unknown Port Range protocol '%1'" ).arg( portRange[ 0 ])), i18n( "Internal error" )); + { KMessageBox::error( this, i18n( "Internal error - Unknown Port Range protocol '%1'" ).arg( portRange[ 0 ]), i18n( "Internal error" )); return false; } @@ -282,7 +282,7 @@ bool CommonWidget::getOptions( ) bool portRangesState = m_portRangesCheckBox->isChecked( ); if( portRangesState && portRanges.isEmpty( )) - { KMessageBox::error( this, i18n( TQString( "Port ranges not specified" )), i18n( "Port ranges error" )); + { KMessageBox::error( this, i18n( "Port ranges not specified" ), i18n( "Port ranges error" )); return false; } |