diff options
author | Andreas Kling <kling@serenityos.org> | 2023-02-20 19:03:29 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-02-21 00:54:04 +0100 |
commit | bfe081caadceaabf9104fbc464d15d705752a78f (patch) | |
tree | e0d90a85129acf8d2b856a859b85938b783d1454 /Userland/Libraries/LibGfx/Font/WOFF | |
parent | 38b6eedd544a6e24eb72ff10e86e689c0028caa4 (diff) | |
download | serenity-bfe081caadceaabf9104fbc464d15d705752a78f.zip |
LibGfx: Fix const-correctness issues
Diffstat (limited to 'Userland/Libraries/LibGfx/Font/WOFF')
-rw-r--r-- | Userland/Libraries/LibGfx/Font/WOFF/Font.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGfx/Font/WOFF/Font.h b/Userland/Libraries/LibGfx/Font/WOFF/Font.h index 9bb8e55fd8..dfd29cd809 100644 --- a/Userland/Libraries/LibGfx/Font/WOFF/Font.h +++ b/Userland/Libraries/LibGfx/Font/WOFF/Font.h @@ -1,5 +1,6 @@ /* * Copyright (c) 2022, the SerenityOS developers. + * Copyright (c) 2023, Andreas Kling <kling@serenityos.org> * * SPDX-License-Identifier: BSD-2-Clause */ @@ -38,14 +39,14 @@ public: virtual bool is_fixed_width() const override { return m_input_font->is_fixed_width(); } private: - Font(NonnullRefPtr<Gfx::VectorFont> input_font, ByteBuffer input_font_buffer) + Font(NonnullRefPtr<Gfx::VectorFont const> input_font, ByteBuffer input_font_buffer) : m_input_font_buffer(move(input_font_buffer)) , m_input_font(move(input_font)) { } ByteBuffer m_input_font_buffer; - NonnullRefPtr<Gfx::VectorFont> m_input_font; + NonnullRefPtr<Gfx::VectorFont const> m_input_font; }; } |