Convert event_type_t to an enum class

This commit is contained in:
ridiculousfish
2019-02-20 22:42:58 -08:00
parent 1b8ddacfed
commit 780b53ba73
9 changed files with 72 additions and 71 deletions

View File

@@ -434,7 +434,7 @@ int main(int argc, char **argv) {
// TODO: The generic process-exit event is useless and unused.
// Remove this in future.
proc_fire_event(L"PROCESS_EXIT", EVENT_EXIT, getpid(), exit_status);
proc_fire_event(L"PROCESS_EXIT", event_type_t::exit, getpid(), exit_status);
// Trigger any exit handlers.
wcstring_list_t event_args = {to_string(exit_status)};