summaryrefslogtreecommitdiff
path: root/Userland/Applications/Browser/BrowserWindow.cpp
diff options
context:
space:
mode:
authorDylan Katz <dykatz@uw.edu>2022-01-10 19:00:44 -0800
committerAndreas Kling <kling@serenityos.org>2022-01-21 22:14:13 +0100
commita2a93727db565eb1aba27f17b79735e4966b98a1 (patch)
treeabe1bd29a99e688088af7cfa46b7ccf756412ffe /Userland/Applications/Browser/BrowserWindow.cpp
parent12a6ec929297fb7dc699c6093b508a402e1ded04 (diff)
downloadserenity-a2a93727db565eb1aba27f17b79735e4966b98a1.zip
LibGUI: Allow Button::set_icon to accept a bitmap without a move
Previously, Button::set_icon required moving the bitmap into the button, preventing the same bitmap from being used by multiple buttons at once. While this works for buttons that are created once, any button that is dynamically added would require the same bitmap to be loaded every single time. In addition to being ineffecient, this also makes error checking more difficult. With this change, a bitmap can be loaded once, and passed to multiple buttons.
Diffstat (limited to 'Userland/Applications/Browser/BrowserWindow.cpp')
0 files changed, 0 insertions, 0 deletions