@@ -40,7 +40,7 @@ namespace Botan_CLI {
4040#if defined(BOTAN_HAS_BLOCK_CIPHER)
4141class PerfTest_BlockCipher final : public PerfTest {
4242 public:
43- PerfTest_BlockCipher (std::string_view alg) : m_alg(alg) {}
43+ explicit PerfTest_BlockCipher (std::string_view alg) : m_alg(alg) {}
4444
4545 void go (const PerfConfig& config) override {
4646 for (const auto & provider : Botan::BlockCipher::providers (m_alg)) {
@@ -104,7 +104,7 @@ class PerfTest_BlockCipher final : public PerfTest {
104104#if defined(BOTAN_HAS_CIPHER_MODES)
105105class PerfTest_CipherMode final : public PerfTest {
106106 public:
107- PerfTest_CipherMode (std::string_view alg) : m_alg(alg) {}
107+ explicit PerfTest_CipherMode (std::string_view alg) : m_alg(alg) {}
108108
109109 void go (const PerfConfig& config) override {
110110 for (const auto & provider : Botan::Cipher_Mode::providers (m_alg)) {
@@ -184,7 +184,7 @@ class PerfTest_CipherMode final : public PerfTest {
184184#if defined(BOTAN_HAS_STREAM_CIPHER)
185185class PerfTest_StreamCipher final : public PerfTest {
186186 public:
187- PerfTest_StreamCipher (std::string_view alg) : m_alg(alg) {}
187+ explicit PerfTest_StreamCipher (std::string_view alg) : m_alg(alg) {}
188188
189189 void go (const PerfConfig& config) override {
190190 for (const auto & provider : Botan::StreamCipher::providers (m_alg)) {
@@ -247,7 +247,7 @@ class PerfTest_StreamCipher final : public PerfTest {
247247#if defined(BOTAN_HAS_HASH)
248248class PerfTest_HashFunction final : public PerfTest {
249249 public:
250- PerfTest_HashFunction (std::string_view alg) : m_alg(alg) {}
250+ explicit PerfTest_HashFunction (std::string_view alg) : m_alg(alg) {}
251251
252252 void go (const PerfConfig& config) override {
253253 for (const auto & provider : Botan::HashFunction::providers (m_alg)) {
@@ -288,7 +288,7 @@ class PerfTest_HashFunction final : public PerfTest {
288288#if defined(BOTAN_HAS_MAC)
289289class PerfTest_MessageAuthenticationCode final : public PerfTest {
290290 public:
291- PerfTest_MessageAuthenticationCode (std::string_view alg) : m_alg(alg) {}
291+ explicit PerfTest_MessageAuthenticationCode (std::string_view alg) : m_alg(alg) {}
292292
293293 void go (const PerfConfig& config) override {
294294 for (const auto & provider : Botan::MessageAuthenticationCode::providers (m_alg)) {
@@ -339,7 +339,7 @@ class PerfTest_MessageAuthenticationCode final : public PerfTest {
339339#if defined(BOTAN_HAS_XOF)
340340class PerfTest_XOF final : public PerfTest {
341341 public:
342- PerfTest_XOF (std::string_view alg) : m_alg(alg) {}
342+ explicit PerfTest_XOF (std::string_view alg) : m_alg(alg) {}
343343
344344 void go (const PerfConfig& config) override {
345345 for (const auto & provider : Botan::XOF::providers (m_alg)) {
0 commit comments