From 014007bf542860d62095b015870dfd12bfd58b33 Mon Sep 17 00:00:00 2001 From: Desour Date: Wed, 20 Mar 2024 19:38:29 +0100 Subject: [PATCH] Reformat test/image_loader_test.cpp manually --- test/image_loader_test.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/image_loader_test.cpp b/test/image_loader_test.cpp index 94fc26cb..1dd4888f 100644 --- a/test/image_loader_test.cpp +++ b/test/image_loader_test.cpp @@ -6,14 +6,16 @@ using namespace irr; -struct ImageDesc { +struct ImageDesc +{ const char *name; video::ECOLOR_FORMAT format; std::vector data; }; template -std::vector to_byte_array(std::initializer_list in_data) { +std::vector to_byte_array(std::initializer_list in_data) +{ std::vector data; data.resize(sizeof(T) * in_data.size()); memcpy(data.data(), in_data.begin(), data.size()); @@ -114,7 +116,7 @@ try { throw std::runtime_error("Invalid arguments. Expected sample ID and image file name"); const ImageDesc *sample = nullptr; - for (auto &&image: test_images) { + for (auto &&image : test_images) { if (strcmp(argv[1], image.name) == 0) sample = ℑ }