mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-19 21:21:15 -03:00
Mark a bunch of constructors as explicit
This prevents undesired implicit conversions
This commit is contained in:
@@ -74,7 +74,7 @@ class scoped_buffer_t
|
||||
int (* const old_writer)(char);
|
||||
|
||||
public:
|
||||
scoped_buffer_t(data_buffer_t *buff) : old_buff(s_writeb_buffer), old_writer(output_get_writer())
|
||||
explicit scoped_buffer_t(data_buffer_t *buff) : old_buff(s_writeb_buffer), old_writer(output_get_writer())
|
||||
{
|
||||
s_writeb_buffer = buff;
|
||||
output_set_writer(s_writeb);
|
||||
|
||||
Reference in New Issue
Block a user