aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Klöcker <[email protected]>2020-08-10 09:06:13 +0000
committerIngo Klöcker <[email protected]>2020-08-10 09:06:13 +0000
commitc813734c9ce0a77f5a9d463a6b16074e522cc2ce (patch)
treef9254022a48120e154e899543252673c1fd13bb3
parentcpp: Use cstdlib getenv for portability (diff)
downloadgpgme-c813734c9ce0a77f5a9d463a6b16074e522cc2ce.tar.gz
gpgme-c813734c9ce0a77f5a9d463a6b16074e522cc2ce.zip
cpp: Make private helper a file static
* lang/cpp/src/context.h, lang/cpp/src/context.cpp (Context::getLFSeparatedListOfFingerprintsFromSubkeys): Remove from Context; make it a static function instead -- GnuPG-bug-id: 5003
-rw-r--r--lang/cpp/src/context.cpp2
-rw-r--r--lang/cpp/src/context.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/lang/cpp/src/context.cpp b/lang/cpp/src/context.cpp
index 6b657f60..7b386801 100644
--- a/lang/cpp/src/context.cpp
+++ b/lang/cpp/src/context.cpp
@@ -1527,7 +1527,7 @@ Error Context::startCreateSubkey(const Key &k, const char *algo,
k.impl(), algo, reserved, expires, flags));
}
-std::string Context::getLFSeparatedListOfFingerprintsFromSubkeys(const std::vector<Subkey> &subkeys)
+static std::string getLFSeparatedListOfFingerprintsFromSubkeys(const std::vector<Subkey> &subkeys)
{
if (subkeys.empty()) {
return std::string();
diff --git a/lang/cpp/src/context.h b/lang/cpp/src/context.h
index ebf5adb2..9cd35a5c 100644
--- a/lang/cpp/src/context.h
+++ b/lang/cpp/src/context.h
@@ -500,8 +500,6 @@ private:
// on the "Friendlyness" of context to access the gpgme types.
gpgme_key_t *getKeysFromRecipients(const std::vector<Key> &recipients);
- std::string getLFSeparatedListOfFingerprintsFromSubkeys(const std::vector<Subkey> &subkeys);
-
private:
Private *const d;