Mark a bunch of constructors as explicit

This prevents undesired implicit conversions
This commit is contained in:
ridiculousfish
2016-02-27 19:38:15 -08:00
parent 88a785e321
commit 10f3ea0008
22 changed files with 45 additions and 69 deletions

View File

@@ -66,7 +66,7 @@ struct builtin_printf_state_t
/* Whether we should stop outputting. This gets set in the case of an error, and also with the \c escape. */
bool early_exit;
builtin_printf_state_t(io_streams_t &s) : streams(s), exit_code(0), early_exit(false)
explicit builtin_printf_state_t(io_streams_t &s) : streams(s), exit_code(0), early_exit(false)
{
}