mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-24 09:21:16 -03:00
Switch a cast from C style to C++ style
This commit is contained in:
@@ -465,9 +465,7 @@ static std::shared_ptr<output_stream_t> create_output_stream_for_builtin(
|
||||
// Our IO redirection is to an internal buffer, e.g. a command substitution.
|
||||
// We will write directly to it.
|
||||
std::shared_ptr<io_buffer_t> buffer =
|
||||
// (this is not a dynamic_cast because that needs rtti,
|
||||
// and we currently use it nowhere else)
|
||||
((const io_bufferfill_t *)io.get())->buffer();
|
||||
std::static_pointer_cast<const io_bufferfill_t>(io)->buffer();
|
||||
return make_unique<buffered_output_stream_t>(buffer);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user