From e265054c12a4fb596b26789e18f342711cf3ef95 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Thu, 25 Feb 2021 21:10:47 +0100 Subject: Everywhere: Remove a bunch of redundant 'AK::' namespace prefixes This is basically just for consistency, it's quite strange to see multiple AK container types next to each other, some with and some without the namespace prefix - we're 'using AK::Foo;' a lot and should leverage that. :^) --- Userland/Libraries/LibCrypto/BigInt/SignedBigInteger.h | 2 +- Userland/Libraries/LibCrypto/BigInt/UnsignedBigInteger.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'Userland/Libraries/LibCrypto/BigInt') diff --git a/Userland/Libraries/LibCrypto/BigInt/SignedBigInteger.h b/Userland/Libraries/LibCrypto/BigInt/SignedBigInteger.h index b2ff1dd118..753a27c47c 100644 --- a/Userland/Libraries/LibCrypto/BigInt/SignedBigInteger.h +++ b/Userland/Libraries/LibCrypto/BigInt/SignedBigInteger.h @@ -64,7 +64,7 @@ public: return { UnsignedBigInteger::create_invalid(), false }; } - static SignedBigInteger import_data(const AK::StringView& data) { return import_data((const u8*)data.characters_without_null_termination(), data.length()); } + static SignedBigInteger import_data(const StringView& data) { return import_data((const u8*)data.characters_without_null_termination(), data.length()); } static SignedBigInteger import_data(const u8* ptr, size_t length); size_t export_data(Bytes, bool remove_leading_zeros = false) const; diff --git a/Userland/Libraries/LibCrypto/BigInt/UnsignedBigInteger.h b/Userland/Libraries/LibCrypto/BigInt/UnsignedBigInteger.h index 07d2ca4848..becae66749 100644 --- a/Userland/Libraries/LibCrypto/BigInt/UnsignedBigInteger.h +++ b/Userland/Libraries/LibCrypto/BigInt/UnsignedBigInteger.h @@ -42,7 +42,7 @@ class UnsignedBigInteger { public: UnsignedBigInteger(u32 x) { m_words.append(x); } - explicit UnsignedBigInteger(AK::Vector&& words) + explicit UnsignedBigInteger(Vector&& words) : m_words(move(words)) { } @@ -53,7 +53,7 @@ public: static UnsignedBigInteger create_invalid(); - static UnsignedBigInteger import_data(const AK::StringView& data) { return import_data((const u8*)data.characters_without_null_termination(), data.length()); } + static UnsignedBigInteger import_data(const StringView& data) { return import_data((const u8*)data.characters_without_null_termination(), data.length()); } static UnsignedBigInteger import_data(const u8* ptr, size_t length) { return UnsignedBigInteger(ptr, length); @@ -64,7 +64,7 @@ public: static UnsignedBigInteger from_base10(const String& str); String to_base10() const; - const AK::Vector& words() const { return m_words; } + const Vector& words() const { return m_words; } void set_to_0(); void set_to(u32 other); @@ -116,7 +116,7 @@ private: static constexpr size_t BITS_IN_WORD = 32; // Little endian // m_word[0] + m_word[1] * 256 + m_word[2] * 65536 + ... - AK::Vector m_words; + Vector m_words; // Used to indicate a negative result, or a result of an invalid operation bool m_is_invalid { false }; -- cgit v1.2.3