diff options
Diffstat (limited to 'src/wlstate.cc')
| -rw-r--r-- | src/wlstate.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wlstate.cc b/src/wlstate.cc index 940a011..0e65e38 100644 --- a/src/wlstate.cc +++ b/src/wlstate.cc @@ -64,8 +64,8 @@ enum wlstate_error_e wayc_wlstate_init(struct wlstate_s* state) { wayc_notnull(state); memset(state, 0, sizeof(*state)); - wl_display_t display = wl_display_connect(NULL); - if (display == NULL) return WLSTATE_ERROR_CONNECTION; + wl_display_t display = wl_display_connect(nullptr); + if (display == nullptr) return WLSTATE_ERROR_CONNECTION; i32 eventfd = wl_display_get_fd(display); if (eventfd == -1) { @@ -74,7 +74,7 @@ enum wlstate_error_e wayc_wlstate_init(struct wlstate_s* state) { } wl_registry_t registry = wl_display_get_registry(display); - if (registry == NULL) { + if (registry == nullptr) { wl_display_disconnect(display); return WLSTATE_ERROR_REGISTRY; } |
