From 1e9b95baac736127eb5cc83c7d22f19ab38c1755 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Wed, 21 Sep 2022 22:05:21 +0200 Subject: [PATCH] Very minor code change. --- es-core/src/components/primary/CarouselComponent.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/es-core/src/components/primary/CarouselComponent.h b/es-core/src/components/primary/CarouselComponent.h index bf7f8569d..984f4c33e 100644 --- a/es-core/src/components/primary/CarouselComponent.h +++ b/es-core/src/components/primary/CarouselComponent.h @@ -548,7 +548,8 @@ template void CarouselComponent::render(const glm::mat4& parentT mRenderer->drawRect(0.0f, 0.0f, mSize.x, mSize.y, mCarouselColor, mCarouselColorEnd, mColorGradientHorizontal); - bool isWheel {mType == CarouselType::VERTICAL_WHEEL || mType == CarouselType::HORIZONTAL_WHEEL}; + const bool isWheel {mType == CarouselType::VERTICAL_WHEEL || + mType == CarouselType::HORIZONTAL_WHEEL}; // Draw the items. // itemSpacing will also include the size of the item itself.