From 099c0b29bf92870f61e88d37108cdda471827246 Mon Sep 17 00:00:00 2001 From: heck Date: Thu, 3 Mar 2022 01:07:01 +0100 Subject: [PATCH] grp_manager_interface: useless const in func decl --- src/grp_manager_interface.hh | 4 ++-- src/passphrase_cache.hh | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/grp_manager_interface.hh b/src/grp_manager_interface.hh index 6f39226..5970e90 100644 --- a/src/grp_manager_interface.hh +++ b/src/grp_manager_interface.hh @@ -47,12 +47,12 @@ namespace pEp { virtual PEP_STATUS group_query_manager( ::PEP_SESSION session, - const ::pEp_identity *const group, + const ::pEp_identity *group, ::pEp_identity **manager) noexcept = 0; virtual PEP_STATUS group_query_members( ::PEP_SESSION session, - const ::pEp_identity *const group, + const ::pEp_identity *group, ::identity_list **members) noexcept = 0; private: diff --git a/src/passphrase_cache.hh b/src/passphrase_cache.hh index c16f13f..f550aaf 100644 --- a/src/passphrase_cache.hh +++ b/src/passphrase_cache.hh @@ -19,7 +19,7 @@ namespace pEp { using duration = clock::duration; struct cache_entry { - static const size_t max_len = 250 * 4; + static const size_t max_len = static_cast(250 * 4); cache_entry(const std::string& p, time_point t); std::string passphrase; @@ -46,7 +46,7 @@ namespace pEp { }; PassphraseCache(size_t max_size = 20, duration timeout = std::chrono::minutes(10)); - ~PassphraseCache() {} + ~PassphraseCache() = default; PassphraseCache(const PassphraseCache& second); PassphraseCache& operator=(const PassphraseCache& second); @@ -62,7 +62,7 @@ namespace pEp { // other until the cache is exhausted // call with reset = true to reset the iterator - static PEP_STATUS config_next_passphrase(bool reset = false, PEP_SESSION session = NULL); + static PEP_STATUS config_next_passphrase(bool reset = false, PEP_SESSION session = nullptr); // convenience functions // i.e. @@ -85,7 +85,7 @@ namespace pEp { }; extern PassphraseCache passphrase_cache; -}; // namespace pEp +} // namespace pEp #include "passphrase_cache.hxx"