Cleanup: use initializer list for all GHOST_SystemWayland members

This commit is contained in:
Campbell Barton 2023-09-26 19:50:08 +10:00
parent 0309de1f15
commit c4651af470
1 changed files with 7 additions and 7 deletions

View File

@ -5583,16 +5583,16 @@ static void gwl_display_event_thread_destroy(GWL_Display *display)
* \{ */
GHOST_SystemWayland::GHOST_SystemWayland(bool background)
: GHOST_System(), display_(new GWL_Display)
: GHOST_System(),
#ifdef USE_EVENT_BACKGROUND_THREAD
server_mutex(new std::mutex),
timer_mutex(new std::mutex),
main_thread_id(std::this_thread::get_id()),
#endif
display_(new GWL_Display)
{
wl_log_set_handler_client(ghost_wayland_log_handler);
#ifdef USE_EVENT_BACKGROUND_THREAD
server_mutex = new std::mutex;
timer_mutex = new std::mutex;
main_thread_id = std::this_thread::get_id();
#endif
display_->system = this;
/* Connect to the Wayland server. */
display_->wl.display = wl_display_connect(nullptr);