From 0a9578c1ec7593808dc17cd14b13b154fb839c57 Mon Sep 17 00:00:00 2001 From: apio Date: Sat, 7 Sep 2024 16:52:48 +0200 Subject: [PATCH] libui/Font: Use RefString --- gui/libui/src/Font.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gui/libui/src/Font.cpp b/gui/libui/src/Font.cpp index 0534680c..12021d68 100644 --- a/gui/libui/src/Font.cpp +++ b/gui/libui/src/Font.cpp @@ -7,7 +7,7 @@ * */ -#include +#include #include #include @@ -49,8 +49,8 @@ namespace ui Result> Font::load_builtin(StringView name, FontWeight weight) { - auto path = TRY(String::format("/usr/share/fonts/%s-%s.psf"_sv, name.chars(), - weight == FontWeight::Bold ? "Bold" : "Regular")); + auto path = TRY(RefString::format("/usr/share/fonts/%s-%s.psf"_sv, name.chars(), + weight == FontWeight::Bold ? "Bold" : "Regular")); return load(path.view()); }