From 1c37c29e2d7771fa265774d345b2f5ed6ce752bc Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Thu, 19 May 2022 10:28:39 +0200 Subject: [PATCH] Avoid "hides overloaded function" warning messages. --- src/drivers/Wayland/Fl_Wayland_Screen_Driver.H | 2 +- src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.H b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.H index 71c30e30a..6af144fab 100644 --- a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.H +++ b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.H @@ -67,7 +67,7 @@ public: static void insertion_point_location(int x, int y, int height); static bool insertion_point_location(int *px, int *py, int *pwidth, int *pheight); int get_mouse_unscaled(int &xx, int &yy); - void screen_count(int count) {num_screens = count;} + void screen_count_set(int count) {num_screens = count;} void reset_cursor(); struct wl_cursor *xc_arrow; diff --git a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx index efa8779cf..e7622d67d 100644 --- a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx @@ -997,7 +997,7 @@ static void registry_handle_global(void *user_data, struct wl_registry *wl_regis wl_proxy_set_tag((struct wl_proxy *) output->wl_output, &proxy_tag); wl_output_add_listener(output->wl_output, &output_listener, output); wl_list_insert(&(scr_driver->outputs), &output->link); - scr_driver->screen_count( wl_list_length(&(scr_driver->outputs)) ); + scr_driver->screen_count_set( wl_list_length(&(scr_driver->outputs)) ); //fprintf(stderr, "wl_output: id=%d wl_output=%p screen_count()=%d\n", id, output->wl_output, Fl::screen_count()); } else if (strcmp(interface, xdg_wm_base_interface.name) == 0) { @@ -1041,7 +1041,7 @@ static void registry_handle_global_remove(void *data, struct wl_registry *regist xp = xp->next; } wl_list_remove(&output->link); - scr_driver->screen_count( wl_list_length(&(scr_driver->outputs)) ); + scr_driver->screen_count_set( wl_list_length(&(scr_driver->outputs)) ); wl_output_destroy(output->wl_output); free(output); break;