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 "resources/Font.h"
namespace
{
struct CarouselElement {
std::shared_ptr<GuiComponent> logo;
std::string logoPath;
std::string defaultLogoPath;
};
}; // namespace
struct CarouselElement {
std::shared_ptr<GuiComponent> logo;
std::string logoPath;
std::string defaultLogoPath;
};
template <typename T>
class CarouselComponent : public PrimaryComponent<T>, protected IList<CarouselElement, T>

View file

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