diff --git a/CMakeLists.txt b/CMakeLists.txt index f9564ce..81d8193 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,7 +30,7 @@ set(CMAKE_USER_MAKE_RULES_OVERRIDE "${CMAKE_SOURCE_DIR}/cmake/FlagsOverrides.cma # define project project(GpgFrontendModules - VERSION 2.1.7 + VERSION 2.1.8 DESCRIPTION "Modules of GpgFrontend" HOMEPAGE_URL "https://gpgfrontend.bktus.com" LANGUAGES CXX) @@ -39,7 +39,7 @@ project(GpgFrontendModules include(GenerateExportHeader) # function or mode options -option(GPGFRONTEND_QT5_BUILD "Swith to Qt5 building mode" OFF) +option(GPGFRONTEND_QT5_BUILD "Switch to Qt5 building mode" OFF) # Using Standard C++-17 (Consider compatibility) set(CMAKE_CXX_STANDARD 17) diff --git a/src/m_gpg_info/GnuPGInfoGatheringModule.cpp b/src/m_gpg_info/GnuPGInfoGatheringModule.cpp index 99972de..2b4de05 100644 --- a/src/m_gpg_info/GnuPGInfoGatheringModule.cpp +++ b/src/m_gpg_info/GnuPGInfoGatheringModule.cpp @@ -306,7 +306,7 @@ void GetGpgComponentInfos(void *data, int exit_code, const char *out, auto component_desc = info_split_list[1].trimmed(); auto component_path = info_split_list[2].trimmed(); -#ifdef __MINGW32__ +#if defined(_WIN32) || defined(WIN32) // replace some special substrings on windows // platform component_path.replace("%3a", ":"); @@ -382,7 +382,7 @@ void GetGpgDirectoryInfos(void *, int exit_code, const char *out, auto configuration_name = info_split_list[0].trimmed(); auto configuration_value = info_split_list[1].trimmed(); -#ifdef __MINGW32__ +#if defined(_WIN32) || defined(WIN32) // replace some special substrings on windows // platform configuration_value.replace("%3a", ":"); diff --git a/src/m_key_server_sync/VKSInterface.cpp b/src/m_key_server_sync/VKSInterface.cpp index eb16097..f896935 100644 --- a/src/m_key_server_sync/VKSInterface.cpp +++ b/src/m_key_server_sync/VKSInterface.cpp @@ -39,7 +39,6 @@ #include #include #include -#include // #include diff --git a/src/m_paper_key/parse.cpp b/src/m_paper_key/parse.cpp index 1fe130e..a8e6938 100644 --- a/src/m_paper_key/parse.cpp +++ b/src/m_paper_key/parse.cpp @@ -314,8 +314,7 @@ struct packet *read_secrets_file(FILE *secrets, enum data_type input_type) { linenum = atoi(line); if (linenum != next_linenum) { - FLOG_ERROR("missing line number %u (saw %u)", next_linenum, - linenum); + FLOG_ERROR("missing line number %u (saw %u)", next_linenum, linenum); free_packet(packet); return NULL; } else