From 5fe8dd08dee960f3a0bd94f8e3a3f383d27a4996 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Wed, 25 Sep 2024 03:40:07 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- src/dict/dsl.cc | 2 +- src/dict/epwing.cc | 2 +- src/dict/gls.cc | 2 +- src/dict/zim.cc | 5 ++--- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/dict/dsl.cc b/src/dict/dsl.cc index df0a87c793..38541d20f9 100644 --- a/src/dict/dsl.cc +++ b/src/dict/dsl.cc @@ -95,7 +95,7 @@ struct IdxHeader uint32_t zipSupportVersion; // Zip support version -- narrows down reindexing // when it changes only for dictionaries with the // zip files - uint32_t dslEncoding; // Which encoding is used for the file indexed + uint32_t dslEncoding; // Which encoding is used for the file indexed uint32_t chunksOffset; // The offset to chunks' storage uint32_t hasAbrv; // Non-zero means file has abrvs at abrvAddress uint32_t abrvAddress; // Address of abrv map in the chunked storage diff --git a/src/dict/epwing.cc b/src/dict/epwing.cc index 29cc7dcd80..e2e8041781 100644 --- a/src/dict/epwing.cc +++ b/src/dict/epwing.cc @@ -60,7 +60,7 @@ struct IdxHeader quint32 nameSize; quint32 langFrom; // Source language quint32 langTo; // Target language -} +}; static_assert( alignof( IdxHeader ) == 1 ); #pragma pack( pop ) diff --git a/src/dict/gls.cc b/src/dict/gls.cc index 350d3489b9..fec3647882 100644 --- a/src/dict/gls.cc +++ b/src/dict/gls.cc @@ -313,7 +313,7 @@ struct IdxHeader uint32_t zipSupportVersion; // Zip support version -- narrows down reindexing // when it changes only for dictionaries with the // zip files - uint32_t glsEncoding; // Which encoding is used for the file indexed + uint32_t glsEncoding; // Which encoding is used for the file indexed uint32_t chunksOffset; // The offset to chunks' storage uint32_t indexBtreeMaxElements; // Two fields from IndexInfo uint32_t indexRootOffset; diff --git a/src/dict/zim.cc b/src/dict/zim.cc index 343f9ecc0d..3becd52dc0 100644 --- a/src/dict/zim.cc +++ b/src/dict/zim.cc @@ -66,13 +66,12 @@ DEF_EX( exUserAbort, "User abort", Dictionary::Ex ) using ZimFile = zim::Archive; - enum { Signature = 0x584D495A, // ZIMX on little-endian, XMIZ on big-endian CurrentFormatVersion = 4 + BtreeIndexing::FormatVersion + Folding::Version }; -#pragma pack( push, 1 ) + #pragma pack( push, 1 ) struct IdxHeader { quint32 signature; // First comes the signature, ZIMX @@ -89,7 +88,7 @@ struct IdxHeader quint32 langTo; // Target language }; static_assert( alignof( IdxHeader ) == 1 ); -#pragma pack( pop ) + #pragma pack( pop ) // Some supporting functions bool indexIsOldOrBad( string const & indexFile )