From a6d18b282ab916c6536dc25516affeb9200043b6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 29 Oct 2018 02:02:04 +0300 Subject: Fix code style. --- src/resources/dye/dyepalette_replacescolor.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/resources/dye/dyepalette_replacescolor.cpp') diff --git a/src/resources/dye/dyepalette_replacescolor.cpp b/src/resources/dye/dyepalette_replacescolor.cpp index 80b82751d..4c987aa9d 100644 --- a/src/resources/dye/dyepalette_replacescolor.cpp +++ b/src/resources/dye/dyepalette_replacescolor.cpp @@ -41,9 +41,9 @@ void DyePalette::replaceSColorDefault(uint32_t *restrict pixels, { STD_VECTOR::const_iterator it_end = mColors.end(); const size_t sz = mColors.size(); - if (sz == 0u || pixels == nullptr) + if (sz == 0U || pixels == nullptr) return; - if ((sz % 2) != 0u) + if ((sz % 2) != 0U) -- it_end; for (const uint32_t *const p_end = pixels + CAST_SIZE(bufSize); @@ -102,9 +102,9 @@ void DyePalette::replaceSColorSse2(uint32_t *restrict pixels, { STD_VECTOR::const_iterator it_end = mColors.end(); const size_t sz = mColors.size(); - if (sz == 0u || pixels == nullptr) + if (sz == 0U || pixels == nullptr) return; - if ((sz % 2) != 0u) + if ((sz % 2) != 0U) -- it_end; const int mod = bufSize % 8; const int bufEnd = bufSize - mod; @@ -183,9 +183,9 @@ void DyePalette::replaceSColorAvx2(uint32_t *restrict pixels, { STD_VECTOR::const_iterator it_end = mColors.end(); const size_t sz = mColors.size(); - if (sz == 0u || pixels == nullptr) + if (sz == 0U || pixels == nullptr) return; - if ((sz % 2) != 0u) + if ((sz % 2) != 0U) -- it_end; const int mod = bufSize % 8; const int bufEnd = bufSize - mod; -- cgit v1.2.3-70-g09d2