From f11899f885c18390fa17aebe1ef77b733a81fcaf Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 20 Feb 2023 18:56:08 +0100 Subject: LibWeb+LibIDL: Fix (or paper over) various const-correctness issues There's definitely stuff to iterate on here, but this takes care of making the libraries compile with stricter RP and NNRP. --- Userland/Libraries/LibWeb/FontCache.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Userland/Libraries/LibWeb/FontCache.cpp') diff --git a/Userland/Libraries/LibWeb/FontCache.cpp b/Userland/Libraries/LibWeb/FontCache.cpp index 30b93f641f..b37bf8e553 100644 --- a/Userland/Libraries/LibWeb/FontCache.cpp +++ b/Userland/Libraries/LibWeb/FontCache.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2020, Andreas Kling + * Copyright (c) 2018-2023, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ @@ -13,7 +13,7 @@ FontCache& FontCache::the() return cache; } -RefPtr FontCache::get(FontSelector const& font_selector) const +RefPtr FontCache::get(FontSelector const& font_selector) const { auto cached_font = m_fonts.get(font_selector); if (cached_font.has_value()) @@ -21,7 +21,7 @@ RefPtr FontCache::get(FontSelector const& font_selector) const return nullptr; } -void FontCache::set(FontSelector const& font_selector, NonnullRefPtr font) +void FontCache::set(FontSelector const& font_selector, NonnullRefPtr font) { m_fonts.set(font_selector, move(font)); } -- cgit v1.2.3