From 139f0e8a4b81fe3dcd9476ec5ee16ea5e74af901 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Tue, 2 Apr 2024 16:13:23 +0200 Subject: Use nullptr in all C++ code It's more readable than 0, and a bit safer than NULL, so let's try to follow modern norms. --- unix/tx/TXDialog.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unix/tx/TXDialog.h') diff --git a/unix/tx/TXDialog.h b/unix/tx/TXDialog.h index 861a20be..3187247d 100644 --- a/unix/tx/TXDialog.h +++ b/unix/tx/TXDialog.h @@ -62,7 +62,7 @@ public: fd_set rfds; FD_ZERO(&rfds); FD_SET(ConnectionNumber(dpy), &rfds); - int n = select(FD_SETSIZE, &rfds, 0, 0, 0); + int n = select(FD_SETSIZE, &rfds, nullptr, nullptr, nullptr); if (n < 0) throw rdr::SystemException("select",errno); } } -- cgit v1.2.3