mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-23 04:51:16 -03:00
include fixes and suggestions from code review
This commit is contained in:
@@ -893,7 +893,7 @@ void parser_t::stack_trace(block_t *b, wcstring &buff)
|
||||
This is an event handler
|
||||
*/
|
||||
const event_block_t *eb = static_cast<const event_block_t *>(b);
|
||||
wcstring description = event_get_desc(*eb->event);
|
||||
wcstring description = event_get_desc(eb->event);
|
||||
append_format(buff, _(L"in event handler: %ls\n"), description.c_str());
|
||||
buff.append(L"\n");
|
||||
|
||||
@@ -3798,7 +3798,7 @@ if_block_t::if_block_t() :
|
||||
{
|
||||
}
|
||||
|
||||
event_block_t::event_block_t(const event_t *evt) :
|
||||
event_block_t::event_block_t(const event_t &evt) :
|
||||
block_t(EVENT),
|
||||
event(evt)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user