diff options
| author | saturneric <[email protected]> | 2026-09-19 12:13:22 +0200 |
|---|---|---|
| committer | saturneric <[email protected]> | 2026-09-19 12:13:22 +0200 |
| commit | 7b5f2d3a3afddb7d5d9e083cdb83ca13108503e5 (patch) | |
| tree | 780b0df6ae4215f6138865a79fcadbd95f2478f4 /src/m_gpg_info | |
| parent | refactor(modules): migrate to unified GFModule API (diff) | |
| download | modules-7b5f2d3a3afddb7d5d9e083cdb83ca13108503e5.tar.gz modules-7b5f2d3a3afddb7d5d9e083cdb83ca13108503e5.zip | |
style(formatting): apply consistent code formatting
- format macro definitions and function return types
- normalize export header preprocessor indentation
- wrap long calls and deprecated attributes consistently
- apply formatting updates across email and module sources
Diffstat (limited to 'src/m_gpg_info')
| -rw-r--r-- | src/m_gpg_info/GnuPGInfoGatheringModule.cpp | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/src/m_gpg_info/GnuPGInfoGatheringModule.cpp b/src/m_gpg_info/GnuPGInfoGatheringModule.cpp index ff3c233..f9bbf18 100644 --- a/src/m_gpg_info/GnuPGInfoGatheringModule.cpp +++ b/src/m_gpg_info/GnuPGInfoGatheringModule.cpp @@ -198,12 +198,12 @@ auto StartStartGatheringGnuPGComponentsInfo(const QString &gpgme_version, } auto StartGatheringAllGnuPGInfo() -> int { - const auto gpgme_version = UDUP(GFModuleRetrieveRTValueOrDefault( - "core", "gpgme.version", "0.0.0")); + const auto gpgme_version = + UDUP(GFModuleRetrieveRTValueOrDefault("core", "gpgme.version", "0.0.0")); MLogDebug(QString("got gpgme version from rt: %1").arg(gpgme_version)); - const auto gpgconf_path = UDUP(GFModuleRetrieveRTValueOrDefault( - "core", "gpgme.ctx.gpgconf_path", "")); + const auto gpgconf_path = UDUP( + GFModuleRetrieveRTValueOrDefault("core", "gpgme.ctx.gpgconf_path", "")); MLogDebug(QString("got gpgconf path from rt: %1").arg(gpgconf_path)); if (gpgconf_path.isEmpty()) { @@ -250,7 +250,8 @@ auto StartGatheringAllGnuPGInfo() -> int { for (const auto &component : components) { const auto *component_info_json = GFModuleRetrieveRTValueOrDefault( GFGetModuleID(), - (QString("gnupg.components.%1").arg(component).toUtf8()).constData(), nullptr); + (QString("gnupg.components.%1").arg(component).toUtf8()).constData(), + nullptr); if (component_info_json == nullptr) continue; @@ -436,7 +437,8 @@ void GetGpgComponentInfos(void *data, int exit_code, const char *out, auto const jsonlized_component_info = c_i.Json(); GFModuleUpsertRTValue( GFGetModuleID(), - (QString("gnupg.components.%1").arg(component_name).toUtf8()).constData(), + (QString("gnupg.components.%1").arg(component_name).toUtf8()) + .constData(), (QJsonDocument(jsonlized_component_info).toJson()).constData()); component_infos.push_back(c_i); @@ -541,12 +543,14 @@ void GetGpgOptionInfos(void *data, int exit_code, const char *out, info.value = option_value; auto const jsonlized_option_info = info.Json(); - GFModuleUpsertRTValue(GFGetModuleID(), - (QString("gnupg.components.%1.options.%2") - .arg(component_name) - .arg(option_name) - .toUtf8()).constData(), - (QJsonDocument(jsonlized_option_info).toJson()).constData()); + GFModuleUpsertRTValue( + GFGetModuleID(), + (QString("gnupg.components.%1.options.%2") + .arg(component_name) + .arg(option_name) + .toUtf8()) + .constData(), + (QJsonDocument(jsonlized_option_info).toJson()).constData()); options_infos.push_back(info); } |
