mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-16 20:15:38 +00:00
Changed some shared_ptr return values to use values instead of references.
This commit is contained in:
parent
0cbcb7a516
commit
87ace0b8cb
|
@ -91,7 +91,7 @@ public:
|
||||||
mEnvData->mPlatformIds.cend();
|
mEnvData->mPlatformIds.cend();
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::shared_ptr<ThemeData>& getTheme() const { return mTheme; }
|
const std::shared_ptr<ThemeData> getTheme() const { return mTheme; }
|
||||||
|
|
||||||
std::string getGamelistPath(bool forWrite) const;
|
std::string getGamelistPath(bool forWrite) const;
|
||||||
std::string getThemePath() const;
|
std::string getThemePath() const;
|
||||||
|
|
|
@ -98,7 +98,7 @@ public:
|
||||||
void onFocusGained() override { mGrid.onFocusGained(); }
|
void onFocusGained() override { mGrid.onFocusGained(); }
|
||||||
void onFocusLost() override { mGrid.onFocusLost(); }
|
void onFocusLost() override { mGrid.onFocusLost(); }
|
||||||
|
|
||||||
std::shared_ptr<ComponentList>& getResultList() { return mResultList; }
|
std::shared_ptr<ComponentList> getResultList() { return mResultList; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void updateViewStyle();
|
void updateViewStyle();
|
||||||
|
|
|
@ -30,7 +30,7 @@ public:
|
||||||
virtual void onThemeChanged(const std::shared_ptr<ThemeData>& theme) = 0;
|
virtual void onThemeChanged(const std::shared_ptr<ThemeData>& theme) = 0;
|
||||||
|
|
||||||
void setTheme(const std::shared_ptr<ThemeData>& theme);
|
void setTheme(const std::shared_ptr<ThemeData>& theme);
|
||||||
const std::shared_ptr<ThemeData>& getTheme() const { return mTheme; }
|
const std::shared_ptr<ThemeData> getTheme() const { return mTheme; }
|
||||||
|
|
||||||
virtual void preloadGamelist(){};
|
virtual void preloadGamelist(){};
|
||||||
|
|
||||||
|
|
|
@ -607,7 +607,7 @@ const ThemeData::ThemeElement* ThemeData::getElement(const std::string& view,
|
||||||
return &elemIt->second;
|
return &elemIt->second;
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::shared_ptr<ThemeData>& ThemeData::getDefault()
|
const std::shared_ptr<ThemeData> ThemeData::getDefault()
|
||||||
{
|
{
|
||||||
static std::shared_ptr<ThemeData> theme = nullptr;
|
static std::shared_ptr<ThemeData> theme = nullptr;
|
||||||
if (theme == nullptr) {
|
if (theme == nullptr) {
|
||||||
|
|
|
@ -199,7 +199,7 @@ public:
|
||||||
const std::string& view,
|
const std::string& view,
|
||||||
Window* window);
|
Window* window);
|
||||||
|
|
||||||
static const std::shared_ptr<ThemeData>& getDefault();
|
static const std::shared_ptr<ThemeData> getDefault();
|
||||||
|
|
||||||
static std::map<std::string, ThemeSet> getThemeSets();
|
static std::map<std::string, ThemeSet> getThemeSets();
|
||||||
static std::string getThemeFromCurrentSet(const std::string& system);
|
static std::string getThemeFromCurrentSet(const std::string& system);
|
||||||
|
|
Loading…
Reference in a new issue