[pim/libkleo/gpg4win/gpd-5.2] /: Change misleading parameter name

Ingo Klöcker <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit ec3155ad9e373c3085c5853ff5b53170f3e9d401 by Ingo Klöcker, on behalf of Ingo Klöcker.
Committed on 30/07/2026 at 09:39.
Pushed by kloecker into branch 'gpg4win/gpd-5.2'.

Change misleading parameter name

(cherry picked from commit c2c95fdbf03cc97f4e42b95b6ec3427ca54e2907)

M  +1    -1    autotests/formattingtest.cpp
M  +2    -2    src/utils/compliance.cpp

https://invent.kde.org/pim/libkleo/-/commit/ec3155ad9e373c3085c5853ff5b53170f3e9d401

diff --git a/autotests/formattingtest.cpp b/autotests/formattingtest.cpp
index f992aae9..1280da7c 100644
--- a/autotests/formattingtest.cpp
+++ b/autotests/formattingtest.cpp
@@ -34,7 +34,7 @@ using namespace Qt::Literals::StringLiterals;
 
 namespace Kleo::Tests::DeVSCompliance
 {
-void forceUsageOfCompliance(bool active);
+void forceUsageOfCompliance(bool useComplianceOption);
 }
 
 // Curve 448 test key with signing subkey (this key has V5 fingerprints)
diff --git a/src/utils/compliance.cpp b/src/utils/compliance.cpp
index f21983e5..35c4b781 100644
--- a/src/utils/compliance.cpp
+++ b/src/utils/compliance.cpp
@@ -36,9 +36,9 @@ Q_GLOBAL_STATIC(bool, useComplianceForTests)
 
 namespace Kleo::Tests::DeVSCompliance
 {
-KLEO_EXPORT void forceUsageOfCompliance(bool active)
+KLEO_EXPORT void forceUsageOfCompliance(bool useComplianceOption)
 {
-    *useComplianceForTests() = active;
+    *useComplianceForTests() = useComplianceOption;
 }
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.