aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-01-27 15:55:30 +0000
committersaturneric <[email protected]>2025-01-27 15:55:30 +0000
commita5ab3a611ccca5167e31f217ed6e6bdeecc03627 (patch)
tree0aed1dec97b8116d6ee4d505cea2e543213308b6
parentrefactor: clean up code (diff)
downloadGpgFrontend-a5ab3a611ccca5167e31f217ed6e6bdeecc03627.tar.gz
GpgFrontend-a5ab3a611ccca5167e31f217ed6e6bdeecc03627.zip
fix: member variable 'GpgOperaContext::ascii' is not initialized in the constructor
-rw-r--r--src/ui/struct/GpgOperaResultContext.cpp7
-rw-r--r--src/ui/struct/GpgOperaResultContext.h2
2 files changed, 5 insertions, 4 deletions
diff --git a/src/ui/struct/GpgOperaResultContext.cpp b/src/ui/struct/GpgOperaResultContext.cpp
index c36d0ec6..b1dfba63 100644
--- a/src/ui/struct/GpgOperaResultContext.cpp
+++ b/src/ui/struct/GpgOperaResultContext.cpp
@@ -33,12 +33,13 @@ namespace GpgFrontend::UI {
GpgOperaContext::GpgOperaContext(QContainer<OperaWaitingCb>& operas,
QContainer<GpgOperaResult>& opera_results,
GpgKeyList& keys, GpgKeyList& singer_keys,
- QStringList& unknown_fprs)
+ QStringList& unknown_fprs, bool ascii)
: operas(operas),
opera_results(opera_results),
keys(keys),
singer_keys(singer_keys),
- unknown_fprs(unknown_fprs) {}
+ unknown_fprs(unknown_fprs),
+ ascii(ascii) {}
auto GpgOperaContexts::GetContextPath(int category) -> QStringList& {
if (!categories.contains(category)) categories[category] = {};
@@ -73,7 +74,7 @@ auto GpgOperaContexts::GetContext(int category)
if (GetContextPath(category).empty()) return nullptr;
auto context = QSharedPointer<GpgOperaContext>::create(
- operas, opera_results, keys, singer_keys, unknown_fprs);
+ operas, opera_results, keys, singer_keys, unknown_fprs, ascii);
context->ascii = ascii;
context->paths = GetContextPath(category);
diff --git a/src/ui/struct/GpgOperaResultContext.h b/src/ui/struct/GpgOperaResultContext.h
index be245bad..25a6ff28 100644
--- a/src/ui/struct/GpgOperaResultContext.h
+++ b/src/ui/struct/GpgOperaResultContext.h
@@ -51,7 +51,7 @@ struct GpgOperaContext {
GpgOperaContext(QContainer<OperaWaitingCb>& operas,
QContainer<GpgOperaResult>& opera_results, GpgKeyList& keys,
- GpgKeyList& singer_keys, QStringList& unknown_fprs);
+ GpgKeyList& singer_keys, QStringList& unknown_fprs, bool ascii);
};
struct GpgOperaContexts {