mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-13 11:16:53 +00:00
AK: Add String::number() for creating a String from a number.
Instead of manually doing String::format("%d"/"%u") everywhere, let's have
a String API for this. It's just a wrapper around format() for now, but it
could be made more efficient in the future.
This commit is contained in:
@@ -148,7 +148,7 @@ void CConfigFile::write_entry(const String& group, const String& key, const Stri
|
||||
|
||||
void CConfigFile::write_num_entry(const String& group, const String& key, int value)
|
||||
{
|
||||
write_entry(group, key, String::format("%d", value));
|
||||
write_entry(group, key, String::number(value));
|
||||
}
|
||||
void CConfigFile::write_bool_entry(const String& group, const String& key, bool value)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user