summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-04-21 23:36:05 +0200
committerAndreas Kling <kling@serenityos.org>2021-04-21 23:49:02 +0200
commit9db2036437a925caf913c1c7266152cc730868b1 (patch)
treeed0e877cb0b8dbede87fb57e9601a431e227ef27
parent9a8dd38493f7860f2b0485dc9edca01e97230803 (diff)
downloadserenity-9db2036437a925caf913c1c7266152cc730868b1.zip
LibGUI: Convert String::format() => String::formatted()
-rw-r--r--Userland/Libraries/LibGUI/Variant.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGUI/Variant.cpp b/Userland/Libraries/LibGUI/Variant.cpp
index 300e9b90e5..7e974e2d00 100644
--- a/Userland/Libraries/LibGUI/Variant.cpp
+++ b/Userland/Libraries/LibGUI/Variant.cpp
@@ -424,7 +424,7 @@ String Variant::to_string() const
case Type::UnsignedInt:
return String::number(as_uint());
case Type::Float:
- return String::format("%.2f", (double)as_float());
+ return String::formatted("{}", as_float());
case Type::String:
return as_string();
case Type::Bitmap: