From de1516a8d822f72bddfb158126b6e609afc63c64 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 8 Jul 2025 11:52:44 +1000 Subject: Replace on_scope_end with CTAD with OnScopeEnd directly --- src/terminal_ui.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/terminal_ui.cc') diff --git a/src/terminal_ui.cc b/src/terminal_ui.cc index c55d0763..3d963e82 100644 --- a/src/terminal_ui.cc +++ b/src/terminal_ui.cc @@ -637,7 +637,7 @@ void TerminalUI::check_resize(bool force) const int fd = open("/dev/tty", O_RDWR); if (fd < 0) return; - auto close_fd = on_scope_end([fd]{ ::close(fd); }); + auto close_fd = OnScopeEnd([fd]{ ::close(fd); }); DisplayCoord terminal_size{24_line, 80_col}; if (winsize ws; ioctl(fd, TIOCGWINSZ, &ws) == 0 and ws.ws_row > 0 and ws.ws_col > 0) -- cgit v1.2.3