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 18:43:15 +0200
commit43addd52a72ee12615d4aa64774d94c0e37566dd (patch)
treee960b66daedbd0ff69a4ee0a4a1a20cfabbdaa81 /src/loggingoptions.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 <slavek.banko@axis.cz> (cherry picked from commit 5615796c0a10d5068dfb61ecbfbb9ab048ae63cd)
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;
}