We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62272b2 commit 69cf4d4Copy full SHA for 69cf4d4
src/ruisapp/glue/linux/xorg/display.hxx
@@ -81,10 +81,10 @@ public:
81
gtk_init();
82
83
auto disp = gdk_display_open(
84
- // We have to use NULL here because on Wayland it cannot connect to :0 X display even if XWayland is enabled,
+ // We have to use nullptr here because on Wayland it cannot connect to :0 X display even if XWayland is enabled,
85
// because the display name in that case is 'wayland-0'.
86
- // Using NULL here makes it detect the correct display automatically.
87
- NULL
+ // Using nullptr here makes it detect the correct display automatically.
+ nullptr
88
);
89
utki::assert(disp, SL);
90
std::cout << "gdk display name = " << gdk_display_get_name(disp) << std::endl;
0 commit comments