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
|
@ -30,8 +30,8 @@ std::string c_string( const QString & str )
|
|||
}
|
||||
|
||||
bool endsWithIgnoreCase( QByteArrayView str, QByteArrayView extension )
|
||||
{
|
||||
return str.endsWith( extension );
|
||||
{
|
||||
return str.endsWith( extension );
|
||||
}
|
||||
|
||||
QString escapeAmps( QString const & str )
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
@ -23,10 +21,10 @@
|
|||
|
||||
// POSIX symbol unavailable on Windows needed for eb headers
|
||||
#ifdef Q_OS_WIN
|
||||
#ifndef _SSIZE_T
|
||||
#define _SSIZE_T
|
||||
#define ssize_t long
|
||||
#endif
|
||||
#ifndef _SSIZE_T
|
||||
#define _SSIZE_T
|
||||
#define ssize_t long
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <eb/eb.h>
|
||||
|
|
|
@ -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