[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot] 2024-11-20 09:04:06 +00:00 committed by GitHub
parent 8b0f06f715
commit 4f338ccbdb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 9 additions and 13 deletions

View file

@ -1737,8 +1737,8 @@ vector< sptr< Dictionary::Class > > makeDictionaries( vector< string > const & f
int extSize = ( uncompressedDsl ? 4 : 7 );
if ( fileName.size() - extSize >= 5){
auto fileName_without_extension = QByteArrayView( fileName ).chopped(extSize);
if ( fileName.size() - extSize >= 5 ) {
auto fileName_without_extension = QByteArrayView( fileName ).chopped( extSize );
if ( fileName_without_extension.endsWith( "_abrv" ) ) {
// It is, skip it
continue;

View file

@ -1,8 +1,6 @@
#pragma once
#include "dict/dictionary.hh"
#include "ex.hh"

View file

@ -20,7 +20,6 @@
#include <string>
namespace Sdict {
using std::map;

View file

@ -232,8 +232,7 @@ quint32 LangCoder::findIdForLanguage( gd::wstring const & lang )
const auto langFolded = QByteArrayView( Utf8::encode( lang ) );
for ( auto const & lc : LANG_CODE_MAP ) {
if ( langFolded.compare( lc.lang, Qt::CaseInsensitive ) )
{
if ( langFolded.compare( lc.lang, Qt::CaseInsensitive ) ) {
return code2toInt( lc.code2.toStdString().c_str() );
}
}