Fixed some GCC compiler warnings.

This commit is contained in:
Leon Styhre 2022-03-24 23:32:28 +01:00
parent 3a1c9d41ce
commit fa4151a3d9
2 changed files with 9 additions and 15 deletions

View file

@ -16,14 +16,11 @@
#include "components/primary/PrimaryComponent.h" #include "components/primary/PrimaryComponent.h"
#include "resources/Font.h" #include "resources/Font.h"
namespace struct CarouselElement {
{
struct CarouselElement {
std::shared_ptr<GuiComponent> logo; std::shared_ptr<GuiComponent> logo;
std::string logoPath; std::string logoPath;
std::string defaultLogoPath; std::string defaultLogoPath;
}; };
}; // namespace
template <typename T> template <typename T>
class CarouselComponent : public PrimaryComponent<T>, protected IList<CarouselElement, T> class CarouselComponent : public PrimaryComponent<T>, protected IList<CarouselElement, T>

View file

@ -15,13 +15,10 @@
#include "components/primary/PrimaryComponent.h" #include "components/primary/PrimaryComponent.h"
#include "resources/Font.h" #include "resources/Font.h"
namespace struct TextListData {
{
struct TextListData {
unsigned int colorId; unsigned int colorId;
std::shared_ptr<TextCache> textCache; std::shared_ptr<TextCache> textCache;
}; };
}; // namespace
template <typename T> template <typename T>
class TextListComponent : public PrimaryComponent<T>, private IList<TextListData, T> class TextListComponent : public PrimaryComponent<T>, private IList<TextListData, T>