diff options
| author | saturneric <[email protected]> | 2026-10-21 22:21:34 +0200 |
|---|---|---|
| committer | saturneric <[email protected]> | 2026-10-21 22:21:34 +0200 |
| commit | 5eb9ba531a45e9832e384e1459255ead0929a1d5 (patch) | |
| tree | 504a29777906680e8d7b23cec94aceb95a1b2bb0 /src/m_pgp_inspect | |
| parent | fix(i18n): avoid lupdate namespace parsing warning (diff) | |
| download | modules-5eb9ba531a45e9832e384e1459255ead0929a1d5.tar.gz modules-5eb9ba531a45e9832e384e1459255ead0929a1d5.zip | |
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
Diffstat (limited to 'src/m_pgp_inspect')
| -rw-r--r-- | src/m_pgp_inspect/PGPInspectModule.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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"), |
