mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-17 19:21:15 -03:00
Mark a bunch of constructors as explicit
This prevents undesired implicit conversions
This commit is contained in:
@@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user