1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:47:35 +00:00

Meta: Fix wrong 'using namespace X' usages

Apart from causing All AK:: and Crypto:: symbols being suddenly visible even though
they might not be supposed to be, the style guide also says this is wrong:

https://github.com/SerenityOS/serenity/blob/master/Documentation/CodingStyle.md#using-statements
This commit is contained in:
Ben Wiederhake 2020-08-22 20:50:48 +02:00 committed by Andreas Kling
parent 4f77ccbda8
commit 2a2630edc9
3 changed files with 3 additions and 4 deletions

View file

@ -38,7 +38,7 @@ static String number_string_with_one_decimal(float number, const char* suffix)
return String::format("%d.%d %s", (int)number, (int)(decimals * 10), suffix);
}
static String human_readable_size(size_t size)
static inline String human_readable_size(size_t size)
{
if (size < 1 * KiB)
return String::format("%zu B", size);
@ -51,4 +51,4 @@ static String human_readable_size(size_t size)
}
using namespace AK;
using AK::human_readable_size;