diff options
| author | saturneric <[email protected]> | 2026-10-21 22:20:30 +0200 |
|---|---|---|
| committer | saturneric <[email protected]> | 2026-10-21 22:20:30 +0200 |
| commit | 49c7d54fc6c235c57eb7f04195045de1fff7ebc0 (patch) | |
| tree | 4f7d47b33484ee048f4182ea68e5eff207cd850c /src/m_ver_check/VersionCheckingModule.cpp | |
| parent | fix(i18n): clarify command metadata for lupdate (diff) | |
| download | modules-49c7d54fc6c235c57eb7f04195045de1fff7ebc0.tar.gz modules-49c7d54fc6c235c57eb7f04195045de1fff7ebc0.zip | |
fix(i18n): avoid lupdate namespace parsing warning
- alias command metadata to prevent lupdate from misreading the type
- use the alias for the check-for-updates command metadata definition
Diffstat (limited to 'src/m_ver_check/VersionCheckingModule.cpp')
| -rw-r--r-- | src/m_ver_check/VersionCheckingModule.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/m_ver_check/VersionCheckingModule.cpp b/src/m_ver_check/VersionCheckingModule.cpp index 75845bf..3d4a4ec 100644 --- a/src/m_ver_check/VersionCheckingModule.cpp +++ b/src/m_ver_check/VersionCheckingModule.cpp @@ -49,6 +49,10 @@ namespace { +/// Spelled unqualified: lupdate misreads `gf::cmd::Meta kMeta{` in a class +/// body and warns about an unknown namespace. +using CommandMeta = gf::cmd::Meta; + /// Whether to check at startup. The Host's own setting: the setup wizard /// asks it, and this module's settings page shows the same switch rather /// than a second one that could disagree. @@ -161,7 +165,7 @@ class UpdateSettingsWidget : public QWidget, public gf::ui::SettingsWidget { /// Help > Check for Updates. struct CheckForUpdates { - static constexpr gf::cmd::Meta kMeta{ + static constexpr CommandMeta kMeta{ GF_MODULE_ID ".check_for_updates", GTrC::Noop("Check for Updates"), GTrC::Noop("See whether a newer GpgFrontend is available"), |
