fix(c++): add missing explicit to single argument constructors

Reported by cppcheck

Signed-off-by: Samuel Gaist <samuel.gaist@idiap.ch>
This commit is contained in:
Samuel Gaist
2024-02-10 00:08:35 +01:00
committed by poiana
parent 48a7f3bcb4
commit 08f62200b1
14 changed files with 25 additions and 25 deletions

View File

@@ -124,7 +124,7 @@ protected:
class test_ruleset : public evttype_index_ruleset
{
public:
test_ruleset(std::shared_ptr<sinsp_filter_factory> factory):
explicit test_ruleset(std::shared_ptr<sinsp_filter_factory> factory):
evttype_index_ruleset(factory){};
virtual ~test_ruleset() = default;
@@ -154,7 +154,7 @@ public:
class test_ruleset_factory : public filter_ruleset_factory
{
public:
test_ruleset_factory(std::shared_ptr<sinsp_filter_factory> factory):
explicit test_ruleset_factory(std::shared_ptr<sinsp_filter_factory> factory):
m_filter_factory(factory)
{
}