Skip to content

Commit 0ef0602

Browse files
committed
src: remove unnecessary temporary creation
PR-URL: nodejs/node#48734 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]>
1 parent d536016 commit 0ef0602

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graal-nodejs/src/cleanup_queue-inl.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ bool CleanupQueue::empty() const {
2626
}
2727

2828
void CleanupQueue::Add(Callback cb, void* arg) {
29-
auto insertion_info = cleanup_hooks_.emplace(
30-
CleanupHookCallback{cb, arg, cleanup_hook_counter_++});
29+
auto insertion_info =
30+
cleanup_hooks_.emplace(cb, arg, cleanup_hook_counter_++);
3131
// Make sure there was no existing element with these values.
3232
CHECK_EQ(insertion_info.second, true);
3333
}

0 commit comments

Comments
 (0)