1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:38:11 +00:00

Everywhere: Prefer using {:#x} over 0x{:x}

We have a dedicated format specifier which adds the "0x" prefix, so
let's use that instead of adding it manually.
This commit is contained in:
Gunnar Beutner 2021-07-22 01:30:24 +02:00 committed by Andreas Kling
parent 31f30e732a
commit 36e36507d5
12 changed files with 23 additions and 23 deletions

View file

@ -510,7 +510,7 @@ public:
const String to_string() const
{
return String::formatted("[0x{:02X}] {}", (int)opcode_id(), name(opcode_id()));
return String::formatted("[{:#02X}] {}", (int)opcode_id(), name(opcode_id()));
}
virtual const String arguments_string() const = 0;