mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:07:45 +00:00
AK: Use new format functions.
This commit is contained in:
parent
560c52989c
commit
1d96d5eea4
13 changed files with 74 additions and 91 deletions
|
@ -62,7 +62,7 @@ public:
|
|||
|
||||
String to_string() const
|
||||
{
|
||||
return String::format("%02x:%02x:%02x:%02x:%02x:%02x", m_data[0], m_data[1], m_data[2], m_data[3], m_data[4], m_data[5]);
|
||||
return String::formatted("{:02x}:{:02x}:{:02x}:{:02x}:{:02x}:{:02x}", m_data[0], m_data[1], m_data[2], m_data[3], m_data[4], m_data[5]);
|
||||
}
|
||||
|
||||
bool is_zero() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue