include fixes and suggestions from code review

This commit is contained in:
Jan Kanis
2012-12-22 18:38:28 +01:00
parent 30392bf66a
commit 8a446f43ff
8 changed files with 31 additions and 25 deletions

View File

@@ -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)
{