summaryrefslogtreecommitdiffstats
path: root/src/loggingoptions.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/loggingoptions.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/loggingoptions.cpp')
-rw-r--r--src/loggingoptions.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/loggingoptions.cpp b/src/loggingoptions.cpp
index 6c36ccc..ef31b88 100644
--- a/src/loggingoptions.cpp
+++ b/src/loggingoptions.cpp
@@ -184,37 +184,37 @@ bool LoggingOptions::getOptions( )
TQString xmlLogValue = m_xmlLogLineEdit->text( );
if( baseFileNameState && baseFileNameValue.isEmpty( ))
- { KMessageBox::error( this, i18n( TQString( "Base file name not specified" )), i18n( "Base file name error" ));
+ { KMessageBox::error( this, i18n( "Base file name not specified" ), i18n( "Base file name error" ));
return false;
}
if( grepableLogState && grepableLogValue.isEmpty( ))
- { KMessageBox::error( this, i18n( TQString( "grep'able log file name not specified" )), i18n( "grep'able log file name error" ));
+ { KMessageBox::error( this, i18n( "grep'able log file name not specified" ), i18n( "grep'able log file name error" ));
return false;
}
if( normalLogState && normalLogValue.isEmpty( ))
- { KMessageBox::error( this, i18n( TQString( "Normal log file name not specified" )), i18n( "Normal log file name error" ));
+ { KMessageBox::error( this, i18n( "Normal log file name not specified" ), i18n( "Normal log file name error" ));
return false;
}
if( resumeState && scriptKiddieValue.isEmpty( ))
- { KMessageBox::error( this, i18n( TQString( "Resume file name not specified" )), i18n( "Resume file name error" ));
+ { KMessageBox::error( this, i18n( "Resume file name not specified" ), i18n( "Resume file name error" ));
return false;
}
if( scriptKiddieState && scriptKiddieValue.isEmpty( ))
- { KMessageBox::error( this, i18n( TQString( "Script kiddie log file name not specified" )), i18n( "Script kiddie log file name error" ));
+ { KMessageBox::error( this, i18n( "Script kiddie log file name not specified" ), i18n( "Script kiddie log file name error" ));
return false;
}
if( stylesheetState && stylesheetValue.isEmpty( ))
- { KMessageBox::error( this, i18n( TQString( "XSL stylesheet file name not specified" )), i18n( "XSL stylesheet file name error" ));
+ { KMessageBox::error( this, i18n( "XSL stylesheet file name not specified" ), i18n( "XSL stylesheet file name error" ));
return false;
}
if( xmlLogState && xmlLogValue.isEmpty( ))
- { KMessageBox::error( this, i18n( TQString( "XML log file name not specified" )), i18n( "XML log file name error" ));
+ { KMessageBox::error( this, i18n( "XML log file name not specified" ), i18n( "XML log file name error" ));
return false;
}