diff --git a/src/common/utils.cc b/src/common/utils.cc index 4a80f155..2e7a0258 100644 --- a/src/common/utils.cc +++ b/src/common/utils.cc @@ -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 ) diff --git a/src/dict/dsl.cc b/src/dict/dsl.cc index 3dff84e7..483a06aa 100644 --- a/src/dict/dsl.cc +++ b/src/dict/dsl.cc @@ -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; diff --git a/src/dict/epwing_book.hh b/src/dict/epwing_book.hh index 41ea1af5..7128cf6e 100644 --- a/src/dict/epwing_book.hh +++ b/src/dict/epwing_book.hh @@ -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 diff --git a/src/dict/sdict.cc b/src/dict/sdict.cc index 5b9bd669..389c17ec 100644 --- a/src/dict/sdict.cc +++ b/src/dict/sdict.cc @@ -20,7 +20,6 @@ #include - namespace Sdict { using std::map; diff --git a/src/langcoder.cc b/src/langcoder.cc index fb070d76..fde1c219 100644 --- a/src/langcoder.cc +++ b/src/langcoder.cc @@ -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() ); } }