refactor: Improve use of explicit keyword

This commit is contained in:
Fabian Jahr
2020-11-29 19:33:22 +01:00
parent c502a6dbfb
commit 1e62350ca2
19 changed files with 31 additions and 22 deletions

View File

@@ -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; }