diff options
author | Thitat Auareesuksakul <thitat@flux.ci> | 2022-04-15 16:20:33 +0700 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2022-04-17 16:57:52 -0700 |
commit | f4b8bae65f38d960606e85adb484854e8e034da0 (patch) | |
tree | 025a3a9fc2b9f272e24dce26c292dc1458d997da /AK/IPv6Address.h | |
parent | 3c00c1cfad2006f608a5eddc6ffc563a24561041 (diff) | |
download | serenity-f4b8bae65f38d960606e85adb484854e8e034da0.zip |
AK: Add Kernel namespace to KStrings in AK::IPv6Address
Currently there is no AK::IPv6Address in the kernel. But when there is,
KStrings won't resolve properly because they are in Kernel namespace.
Diffstat (limited to 'AK/IPv6Address.h')
-rw-r--r-- | AK/IPv6Address.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/AK/IPv6Address.h b/AK/IPv6Address.h index 82d84b51ab..b5e0255956 100644 --- a/AK/IPv6Address.h +++ b/AK/IPv6Address.h @@ -56,7 +56,7 @@ public: { if (is_zero()) { #ifdef KERNEL - return KString::try_create("::"sv); + return Kernel::KString::try_create("::"sv); #else return "::"sv; #endif @@ -67,7 +67,7 @@ public: if (is_ipv4_mapped()) { #ifdef KERNEL - return KString::formatted("::ffff:{}.{}.{}.{}", m_data[12], m_data[13], m_data[14], m_data[15]); + return Kernel::KString::formatted("::ffff:{}.{}.{}.{}", m_data[12], m_data[13], m_data[14], m_data[15]); #else return String::formatted("::ffff:{}.{}.{}.{}", m_data[12], m_data[13], m_data[14], m_data[15]); #endif @@ -114,7 +114,7 @@ public: i++; } #ifdef KERNEL - return KString::try_create(builder.string_view()); + return Kernel::KString::try_create(builder.string_view()); #else return builder.string_view(); #endif |