diff options
Diffstat (limited to 'src/gpg/function/GpgKeyGetter.h')
-rw-r--r-- | src/gpg/function/GpgKeyGetter.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/gpg/function/GpgKeyGetter.h b/src/gpg/function/GpgKeyGetter.h index 3a291d2d..af22e2f2 100644 --- a/src/gpg/function/GpgKeyGetter.h +++ b/src/gpg/function/GpgKeyGetter.h @@ -32,19 +32,19 @@ namespace GpgFrontend { class GpgKeyGetter : public SingletonFunctionObject<GpgKeyGetter> { + public: + GpgKeyGetter() = default; -public: - GpgKey GetKey(const std::string &fpr); + GpgKey GetKey(const std::string& fpr); - GpgKey GetPubkey(const std::string &fpr); + GpgKey GetPubkey(const std::string& fpr); KeyListPtr FetchKey(); - GpgKeyGetter() = default; - -private: - GpgContext &ctx = GpgContext::GetInstance(); + private: + GpgContext& ctx = + GpgContext::GetInstance(SingletonFunctionObject::GetDefaultChannel()); }; -} // namespace GpgFrontend +} // namespace GpgFrontend -#endif // GPGFRONTEND_ZH_CN_TS_GPGKEYGETTER_H +#endif // GPGFRONTEND_ZH_CN_TS_GPGKEYGETTER_H |