diff options
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; } |