[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

@ -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 )

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"
@ -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>

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() );
}
}