mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
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.
This commit is contained in:
parent
ed3cb88898
commit
c8cfd6661a
Notes:
sideshowbarker
2024-07-17 21:43:16 +09:00
Author: https://github.com/ADKaster
Commit: c8cfd6661a
Pull-request: https://github.com/SerenityOS/serenity/pull/11587
5 changed files with 7 additions and 8 deletions
|
@ -682,7 +682,7 @@ void IconView::toggle_selection(ItemData& item_data)
|
|||
if (!item_data.selected)
|
||||
add_selection(item_data);
|
||||
else
|
||||
remove_selection(item_data);
|
||||
remove_item_selection(item_data);
|
||||
}
|
||||
|
||||
void IconView::toggle_selection(const ModelIndex& new_index)
|
||||
|
@ -692,7 +692,7 @@ void IconView::toggle_selection(const ModelIndex& new_index)
|
|||
toggle_selection(get_item_data(item_index));
|
||||
}
|
||||
|
||||
void IconView::remove_selection(ItemData& item_data)
|
||||
void IconView::remove_item_selection(ItemData& item_data)
|
||||
{
|
||||
if (!item_data.selected)
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue