From 5615796c0a10d5068dfb61ecbfbb9ab048ae63cd Mon Sep 17 00:00:00 2001 From: Slávek Banko Date: Mon, 22 Oct 2018 04:14:01 +0200 Subject: 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. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- src/loggingoptions.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/loggingoptions.cpp') 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; } -- cgit v1.2.3