From 5eb9ba531a45e9832e384e1459255ead0929a1d5 Mon Sep 17 00:00:00 2001 From: saturneric Date: Wed, 21 Oct 2026 22:21:34 +0200 Subject: fix(i18n): avoid lupdate namespace parsing warning - introduce an unqualified alias for command metadata - use the alias to prevent lupdate misreading the class member declaration --- src/m_pgp_inspect/PGPInspectModule.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/m_pgp_inspect/PGPInspectModule.cpp b/src/m_pgp_inspect/PGPInspectModule.cpp index a957255..f352cb6 100644 --- a/src/m_pgp_inspect/PGPInspectModule.cpp +++ b/src/m_pgp_inspect/PGPInspectModule.cpp @@ -36,6 +36,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; + /// The ceiling on what is read out of a tab. Past this, the menu entry stays /// greyed out rather than making every menu opening pay for a packet walk. constexpr qint64 kMaxInspectSize = 16LL * 1024 * 1024; @@ -57,7 +61,7 @@ auto InspectCurrentTab() -> PGPInspectDocument { * entry enabled over plain text promises a window with nothing in it. */ struct OpenInspector { - static constexpr gf::cmd::Meta kMeta{ + static constexpr CommandMeta kMeta{ GF_MODULE_ID ".open_inspector", GTrC::Noop("Open OpenPGP Structure Inspector"), GTrC::Noop("Show the packet structure of the current tab"), -- cgit