mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 15:09:59 +01:00
refactor: Improve use of explicit keyword
This commit is contained in:
@@ -24,7 +24,7 @@ class FuzzedSignatureChecker : public BaseSignatureChecker
|
||||
FuzzedDataProvider& m_fuzzed_data_provider;
|
||||
|
||||
public:
|
||||
FuzzedSignatureChecker(FuzzedDataProvider& fuzzed_data_provider) : m_fuzzed_data_provider(fuzzed_data_provider)
|
||||
explicit FuzzedSignatureChecker(FuzzedDataProvider& fuzzed_data_provider) : m_fuzzed_data_provider(fuzzed_data_provider)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ class DebugLogHelper
|
||||
void check_found();
|
||||
|
||||
public:
|
||||
DebugLogHelper(std::string message, MatchFn match = [](const std::string*){ return true; });
|
||||
explicit DebugLogHelper(std::string message, MatchFn match = [](const std::string*){ return true; });
|
||||
~DebugLogHelper() { check_found(); }
|
||||
};
|
||||
|
||||
|
||||
@@ -231,7 +231,7 @@ public:
|
||||
Optional<std::vector<std::string>> list_value;
|
||||
const char* error = nullptr;
|
||||
|
||||
Expect(util::SettingsValue s) : setting(std::move(s)) {}
|
||||
explicit Expect(util::SettingsValue s) : setting(std::move(s)) {}
|
||||
Expect& DefaultString() { default_string = true; return *this; }
|
||||
Expect& DefaultInt() { default_int = true; return *this; }
|
||||
Expect& DefaultBool() { default_bool = true; return *this; }
|
||||
|
||||
Reference in New Issue
Block a user