summaryrefslogtreecommitdiffstats
path: root/src/commonwidget.cpp
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2018-10-22 04:14:01 +0200
committerSlávek Banko <[email protected]>2018-10-22 18:43:15 +0200
commit43addd52a72ee12615d4aa64774d94c0e37566dd (patch)
treee960b66daedbd0ff69a4ee0a4a1a20cfabbdaa81 /src/commonwidget.cpp
parent83fb5c2a160acd743fe6beab0dca68a5ad8faf21 (diff)
downloadknmap-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 <[email protected]> (cherry picked from commit 5615796c0a10d5068dfb61ecbfbb9ab048ae63cd)
Diffstat (limited to 'src/commonwidget.cpp')
-rw-r--r--src/commonwidget.cpp4
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;
}