diff --git a/Userland/Libraries/LibGUI/Application.cpp b/Userland/Libraries/LibGUI/Application.cpp index 78aac1b8953..eeb785cb5ba 100644 --- a/Userland/Libraries/LibGUI/Application.cpp +++ b/Userland/Libraries/LibGUI/Application.cpp @@ -212,7 +212,7 @@ void Application::set_system_palette(Core::AnonymousBuffer& buffer) if (!m_system_palette) m_system_palette = Gfx::PaletteImpl::create_with_anonymous_buffer(buffer); else - m_system_palette->replace_internal_buffer({}, buffer); + m_system_palette->replace_internal_buffer(buffer); if (!m_palette) m_palette = m_system_palette; diff --git a/Userland/Libraries/LibGfx/Palette.cpp b/Userland/Libraries/LibGfx/Palette.cpp index 9ff2e109210..4c0a6880825 100644 --- a/Userland/Libraries/LibGfx/Palette.cpp +++ b/Userland/Libraries/LibGfx/Palette.cpp @@ -87,7 +87,7 @@ void Palette::set_path(PathRole role, ByteString path) theme.path[(int)role][sizeof(theme.path[(int)role]) - 1] = '\0'; } -void PaletteImpl::replace_internal_buffer(Badge, Core::AnonymousBuffer buffer) +void PaletteImpl::replace_internal_buffer(Core::AnonymousBuffer buffer) { m_theme_buffer = move(buffer); } diff --git a/Userland/Libraries/LibGfx/Palette.h b/Userland/Libraries/LibGfx/Palette.h index 085c1755492..8f5537d71ed 100644 --- a/Userland/Libraries/LibGfx/Palette.h +++ b/Userland/Libraries/LibGfx/Palette.h @@ -12,7 +12,6 @@ #include #include #include -#include #include namespace Gfx { @@ -48,7 +47,7 @@ public: ByteString path(PathRole) const; SystemTheme const& theme() const { return *m_theme_buffer.data(); } - void replace_internal_buffer(Badge, Core::AnonymousBuffer buffer); + void replace_internal_buffer(Core::AnonymousBuffer); private: explicit PaletteImpl(Core::AnonymousBuffer);