From 17597ab144b58d27fe8fa5a1c6123de1f03b559e Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sat, 17 Dec 2022 22:15:19 +0100 Subject: [PATCH] Renamed an incorrectly named static variable in ImageComponent. --- es-core/src/components/ImageComponent.cpp | 4 ++-- es-core/src/components/ImageComponent.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/es-core/src/components/ImageComponent.cpp b/es-core/src/components/ImageComponent.cpp index 9fec9d6e2..e96954def 100644 --- a/es-core/src/components/ImageComponent.cpp +++ b/es-core/src/components/ImageComponent.cpp @@ -564,8 +564,8 @@ void ImageComponent::applyTheme(const std::shared_ptr& theme, } for (std::string& type : mThemeImageTypes) { - if (std::find(supportedImageTypes.cbegin(), supportedImageTypes.cend(), type) == - supportedImageTypes.cend()) { + if (std::find(sSupportedImageTypes.cbegin(), sSupportedImageTypes.cend(), type) == + sSupportedImageTypes.cend()) { LOG(LogError) << "ImageComponent: Invalid theme configuration, property \"imageType\" " "for element \"" diff --git a/es-core/src/components/ImageComponent.h b/es-core/src/components/ImageComponent.h index 4813724d4..d14f22eb4 100644 --- a/es-core/src/components/ImageComponent.h +++ b/es-core/src/components/ImageComponent.h @@ -144,7 +144,7 @@ private: std::string mDefaultPath; - static inline std::vector supportedImageTypes { + static inline std::vector sSupportedImageTypes { "image", "miximage", "marquee", "screenshot", "titlescreen", "cover", "backcover", "3dbox", "physicalmedia", "fanart"};