diff options
author | Andreas Kling <kling@serenityos.org> | 2021-05-09 09:59:22 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-09 09:59:22 +0200 |
commit | 6998fa5c54aa91520cfe279b6c480eb87c0831fc (patch) | |
tree | 3161119403777cc8d49a8a9d155b18fb38bd3aa5 /Userland/Libraries | |
parent | 57c96ce50101db492679bae0eff49a401a16a24d (diff) | |
download | serenity-6998fa5c54aa91520cfe279b6c480eb87c0831fc.zip |
LibGfx: Change "white_space" => "whitespace"
Whitespace is one word. :^)
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibGfx/PGMLoader.cpp | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibGfx/PPMLoader.cpp | 6 | ||||
-rw-r--r-- | Userland/Libraries/LibGfx/PortableImageLoaderCommon.h | 10 |
3 files changed, 9 insertions, 9 deletions
diff --git a/Userland/Libraries/LibGfx/PGMLoader.cpp b/Userland/Libraries/LibGfx/PGMLoader.cpp index 000c10e79d..2df8a37dae 100644 --- a/Userland/Libraries/LibGfx/PGMLoader.cpp +++ b/Userland/Libraries/LibGfx/PGMLoader.cpp @@ -73,7 +73,7 @@ static bool read_image_data(PGMLoadingContext& context, Streamer& streamer) if (!read_number(streamer, &value)) break; - if (!read_white_space(context, streamer)) + if (!read_whitespace(context, streamer)) break; color_data.append({ (u8)value, (u8)value, (u8)value }); diff --git a/Userland/Libraries/LibGfx/PPMLoader.cpp b/Userland/Libraries/LibGfx/PPMLoader.cpp index 5a1bc30d85..c7434bf4a0 100644 --- a/Userland/Libraries/LibGfx/PPMLoader.cpp +++ b/Userland/Libraries/LibGfx/PPMLoader.cpp @@ -62,19 +62,19 @@ static bool read_image_data(PPMLoadingContext& context, Streamer& streamer) if (!read_number(streamer, &red)) break; - if (!read_white_space(context, streamer)) + if (!read_whitespace(context, streamer)) break; if (!read_number(streamer, &green)) break; - if (!read_white_space(context, streamer)) + if (!read_whitespace(context, streamer)) break; if (!read_number(streamer, &blue)) break; - if (!read_white_space(context, streamer)) + if (!read_whitespace(context, streamer)) break; Color color { (u8)red, (u8)green, (u8)blue }; diff --git a/Userland/Libraries/LibGfx/PortableImageLoaderCommon.h b/Userland/Libraries/LibGfx/PortableImageLoaderCommon.h index 62854db131..bc3d1d3cee 100644 --- a/Userland/Libraries/LibGfx/PortableImageLoaderCommon.h +++ b/Userland/Libraries/LibGfx/PortableImageLoaderCommon.h @@ -113,7 +113,7 @@ static bool read_magic_number(TContext& context, Streamer& streamer) } template<typename TContext> -static bool read_white_space(TContext& context, Streamer& streamer) +static bool read_whitespace(TContext& context, Streamer& streamer) { bool exist = false; u8 byte {}; @@ -213,13 +213,13 @@ static bool decode(TContext& context) if (!read_magic_number(context, streamer)) return false; - if (!read_white_space(context, streamer)) + if (!read_whitespace(context, streamer)) return false; if (!read_width(context, streamer)) return false; - if (!read_white_space(context, streamer)) + if (!read_whitespace(context, streamer)) return false; if (!read_height(context, streamer)) @@ -230,14 +230,14 @@ static bool decode(TContext& context) return false; } - if (!read_white_space(context, streamer)) + if (!read_whitespace(context, streamer)) return false; if constexpr (requires { context.max_val; }) { if (!read_max_val(context, streamer)) return false; - if (!read_white_space(context, streamer)) + if (!read_whitespace(context, streamer)) return false; } |