summaryrefslogtreecommitdiff
path: root/AK
diff options
context:
space:
mode:
authorBen Wiederhake <BenWiederhake.GitHub@gmx.de>2020-08-22 20:50:48 +0200
committerAndreas Kling <kling@serenityos.org>2020-08-23 00:53:16 +0200
commit2a2630edc95a23db911ccb154ad6517a130f0b49 (patch)
treec279b36e435ecc1b5458f2d80551601776913696 /AK
parent4f77ccbda81b6721992dcc93958ef1ae9b20066f (diff)
downloadserenity-2a2630edc95a23db911ccb154ad6517a130f0b49.zip
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
Diffstat (limited to 'AK')
-rw-r--r--AK/NumberFormat.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/AK/NumberFormat.h b/AK/NumberFormat.h
index 2b69c16858..7a2d1a681a 100644
--- a/AK/NumberFormat.h
+++ b/AK/NumberFormat.h
@@ -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;