瀏覽代碼

FontEditor: Convert String::format() => String::formatted()

Andreas Kling 4 年之前
父節點
當前提交
3a891abc37
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Userland/Applications/FontEditor/GlyphEditorWidget.cpp

+ 2 - 2
Userland/Applications/FontEditor/GlyphEditorWidget.cpp

@@ -89,8 +89,8 @@ void GlyphEditorWidget::copy_glyph()
 
     HashMap<String, String> 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);