Skip to content

Commit d759d4f

Browse files
CGQAQRafaelGSS
authored andcommitted
src: remove unnecessary temporary creation
PR-URL: #48734 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]>
1 parent d649339 commit d759d4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)