mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 00:14:06 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
parent
8b0f06f715
commit
4f338ccbdb
|
@ -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;
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
#pragma once
|
||||
|
||||
|
||||
|
||||
|
||||
#include "dict/dictionary.hh"
|
||||
#include "ex.hh"
|
||||
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
#include <string>
|
||||
|
||||
|
||||
|
||||
namespace Sdict {
|
||||
|
||||
using std::map;
|
||||
|
|
|
@ -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() );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue