clang-tidy: google-explicit-constructor

This commit is contained in:
Peter Johnson
2020-12-28 11:18:07 -08:00
parent c97c6dc065
commit cbe59fa3bf
15 changed files with 26 additions and 24 deletions

View File

@@ -48,8 +48,8 @@ class SelectCommand : public CommandHelper<CommandBase, SelectCommand<Key>> {
template <class... Types,
typename = std::enable_if_t<std::conjunction_v<
std::is_base_of<Command, std::remove_reference_t<Types>>...>>>
SelectCommand(std::function<Key()> selector,
std::pair<Key, Types>... commands)
explicit SelectCommand(std::function<Key()> selector,
std::pair<Key, Types>... commands)
: m_selector{std::move(selector)} {
std::vector<std::pair<Key, std::unique_ptr<Command>>> foo;