Fixed some Clang compiler warnings.

This commit is contained in:
Leon Styhre 2023-01-06 13:48:59 +01:00
parent 0856fd9244
commit 6c75d0fc88
3 changed files with 4 additions and 4 deletions

View file

@ -580,12 +580,12 @@ void GamelistBase::populateList(const std::vector<FileData*>& files, FileData* f
std::string defaultImage;
if (mCarousel != nullptr) {
defaultImage = mCarousel->getDefaultImage();
defaultImage = mCarousel->getDefaultCarouselImage();
if (!ResourceManager::getInstance().fileExists(defaultImage))
defaultImage = "";
}
else if (mGrid != nullptr) {
defaultImage = mGrid->getDefaultImage();
defaultImage = mGrid->getDefaultGridImage();
if (!ResourceManager::getInstance().fileExists(defaultImage))
defaultImage = "";
}

View file

@ -61,7 +61,7 @@ public:
Entry& getEntry(int index) { return mEntries.at(index); }
void onDemandTextureLoad() override;
const CarouselType getType() { return mType; }
const std::string& getDefaultImage() { return mDefaultImage; }
const std::string& getDefaultCarouselImage() const { return mDefaultImage; }
void setDefaultImage(std::string defaultImage) { mDefaultImage = defaultImage; }
bool isScrolling() const override { return List::isScrolling(); }
const LetterCase getLetterCase() const override { return mLetterCase; }

View file

@ -63,7 +63,7 @@ public:
{
return mLetterCaseGroupedCollections;
}
const std::string& getDefaultImage() { return mDefaultImage; }
const std::string& getDefaultGridImage() const { return mDefaultImage; }
void setDefaultImage(std::string defaultImage) { mDefaultImage = defaultImage; }
bool input(InputConfig* config, Input input) override;
void update(int deltaTime) override;