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 {
{ std::shared_ptr<GuiComponent> logo;
struct CarouselElement { std::string logoPath;
std::shared_ptr<GuiComponent> logo; std::string defaultLogoPath;
std::string logoPath; };
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 {
{ unsigned int colorId;
struct TextListData { std::shared_ptr<TextCache> textCache;
unsigned int colorId; };
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>