WindowServer+LibGUI+LibHTML: Fix build with -std=c++2a
This commit is contained in:
parent
ca4d4cac45
commit
ef38c49619
Notes:
sideshowbarker
2024-07-19 09:13:34 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/ef38c49619f
3 changed files with 3 additions and 3 deletions
|
@ -129,7 +129,7 @@ void MessageBox::build()
|
|||
button->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed);
|
||||
button->set_preferred_size(0, 20);
|
||||
button->set_text(label);
|
||||
button->on_click = [=](auto&) {
|
||||
button->on_click = [this, label, result](auto&) {
|
||||
dbg() << "GUI::MessageBox: '" << label << "' button clicked";
|
||||
done(result);
|
||||
};
|
||||
|
|
|
@ -332,7 +332,7 @@ void HtmlView::load(const URL& url)
|
|||
if (on_load_start)
|
||||
on_load_start(url);
|
||||
|
||||
ResourceLoader::the().load(url, [=](auto data) {
|
||||
ResourceLoader::the().load(url, [this, url](auto data) {
|
||||
if (data.is_null()) {
|
||||
dbg() << "Load failed!";
|
||||
ASSERT_NOT_REACHED();
|
||||
|
|
|
@ -75,7 +75,7 @@ Compositor::Compositor()
|
|||
};
|
||||
m_compose_timer->set_single_shot(true);
|
||||
m_compose_timer->set_interval(1000 / 60);
|
||||
m_immediate_compose_timer->on_timeout = [=]() {
|
||||
m_immediate_compose_timer->on_timeout = [this]() {
|
||||
#if defined(COMPOSITOR_DEBUG)
|
||||
dbgprintf("Compositor: immediate frame callback: %d rects\n", m_dirty_rects.size());
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue