From 3a891abc376fc644f79c543b2387b80fba2f8ba1 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 21 Apr 2021 23:36:17 +0200 Subject: [PATCH] FontEditor: Convert String::format() => String::formatted() --- Userland/Applications/FontEditor/GlyphEditorWidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Applications/FontEditor/GlyphEditorWidget.cpp b/Userland/Applications/FontEditor/GlyphEditorWidget.cpp index b68a2b44e2..4290aa2a6a 100644 --- a/Userland/Applications/FontEditor/GlyphEditorWidget.cpp +++ b/Userland/Applications/FontEditor/GlyphEditorWidget.cpp @@ -89,8 +89,8 @@ void GlyphEditorWidget::copy_glyph() HashMap metadata; metadata.set("char", glyph_builder.to_string()); - metadata.set("width", String::format("%d", bitmap.width())); - metadata.set("height", String::format("%d", bitmap.height())); + metadata.set("width", String::number(bitmap.width())); + metadata.set("height", String::number(bitmap.height())); auto data = ByteBuffer::copy(&bits[0], bitmap.width() * bitmap.height()); GUI::Clipboard::the().set_data(data, "glyph/x-fonteditor", metadata);