FLTK logo

[master] 1c37c29 - Avoid "hides overloaded function" warning messages.

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] 1c37c29 - Avoid "hides overloaded function" warning messages. "ManoloFLTK" May 19, 2022  
 
commit 1c37c29e2d7771fa265774d345b2f5ed6ce752bc
Author:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Thu May 19 10:28:39 2022 +0200
Commit:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Thu May 19 10:28:39 2022 +0200

    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 src/drivers/Wayland/Fl_Wayland_Screen_Driver.H src/drivers/Wayland/Fl_Wayland_Screen_Driver.H
index 71c30e3..6af144f 100644
--- src/drivers/Wayland/Fl_Wayland_Screen_Driver.H
+++ 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 src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx
index efa8779..e7622d6 100644
--- src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx
+++ 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;
Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.