mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 12:37:44 +00:00
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. :^)
This commit is contained in:
parent
be9df404fd
commit
e265054c12
73 changed files with 111 additions and 110 deletions
|
@ -67,7 +67,7 @@ struct PGMLoadingContext {
|
|||
RefPtr<Gfx::Bitmap> bitmap;
|
||||
};
|
||||
|
||||
static void set_adjusted_pixels(PGMLoadingContext& context, const AK::Vector<Gfx::Color>& color_data)
|
||||
static void set_adjusted_pixels(PGMLoadingContext& context, const Vector<Gfx::Color>& color_data)
|
||||
{
|
||||
size_t index = 0;
|
||||
for (size_t y = 0; y < context.height; ++y) {
|
||||
|
|
|
@ -207,7 +207,7 @@ static bool create_bitmap(TContext& context)
|
|||
}
|
||||
|
||||
template<typename TContext>
|
||||
static void set_pixels(TContext& context, const AK::Vector<Gfx::Color>& color_data)
|
||||
static void set_pixels(TContext& context, const Vector<Gfx::Color>& color_data)
|
||||
{
|
||||
size_t index = 0;
|
||||
for (size_t y = 0; y < context.height; ++y) {
|
||||
|
|
|
@ -44,7 +44,7 @@ public:
|
|||
template<typename T>
|
||||
constexpr bool read(T& value)
|
||||
{
|
||||
AK::Array<u8, sizeof(T)> network_buffer {};
|
||||
Array<u8, sizeof(T)> network_buffer {};
|
||||
auto network_value = new (network_buffer.data()) AK::NetworkOrdered<T> {};
|
||||
auto res = read_bytes(network_buffer.data(), sizeof(T));
|
||||
value = T(*network_value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue