From c8cfd6661adbf37e34f1b629e2baf641ec7cb8ee Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Mon, 3 Jan 2022 01:34:29 -0700 Subject: Userland: Resolve -Woverloaded-virtual in LibGUI and SoundPlayer Enable the warning project-wide. It catches when a non-virtual method creates an overload set with a virtual method. This might cause surprising overload resolution depending on how the method is invoked. --- Userland/Libraries/LibGUI/IconView.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/Libraries/LibGUI/IconView.h') diff --git a/Userland/Libraries/LibGUI/IconView.h b/Userland/Libraries/LibGUI/IconView.h index 53da8f638b..258f1c1904 100644 --- a/Userland/Libraries/LibGUI/IconView.h +++ b/Userland/Libraries/LibGUI/IconView.h @@ -143,7 +143,7 @@ private: void do_clear_selection(); bool do_add_selection(ItemData&); void add_selection(ItemData&); - void remove_selection(ItemData&); + void remove_item_selection(ItemData&); void toggle_selection(ItemData&); int m_horizontal_padding { 5 }; -- cgit v1.2.3