mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-03-06 14:27:43 +00:00
Some very minor code cleanup.
This commit is contained in:
parent
3a41aa61c5
commit
47c8f5988d
|
@ -397,7 +397,7 @@ void GamelistView::legacyUpdateView(const CursorState& state)
|
||||||
rating->setVisible(true);
|
rating->setVisible(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool fadingOut = false;
|
bool fadingOut {false};
|
||||||
if (file == nullptr) {
|
if (file == nullptr) {
|
||||||
if (mViewStyle == ViewController::VIDEO) {
|
if (mViewStyle == ViewController::VIDEO) {
|
||||||
mVideoComponents.front()->stopVideoPlayer();
|
mVideoComponents.front()->stopVideoPlayer();
|
||||||
|
|
|
@ -72,8 +72,8 @@ std::string DateTimeComponent::getDisplayString() const
|
||||||
if (mTime.getTime() < 82800)
|
if (mTime.getTime() < 82800)
|
||||||
return "never";
|
return "never";
|
||||||
|
|
||||||
Utils::Time::DateTime now(Utils::Time::now());
|
Utils::Time::DateTime now {Utils::Time::now()};
|
||||||
Utils::Time::Duration dur(now.getTime() - mTime.getTime());
|
Utils::Time::Duration dur {now.getTime() - mTime.getTime()};
|
||||||
|
|
||||||
std::string buf;
|
std::string buf;
|
||||||
|
|
||||||
|
@ -113,7 +113,7 @@ void DateTimeComponent::applyTheme(const std::shared_ptr<ThemeData>& theme,
|
||||||
GuiComponent::applyTheme(theme, view, element, properties);
|
GuiComponent::applyTheme(theme, view, element, properties);
|
||||||
using namespace ThemeFlags;
|
using namespace ThemeFlags;
|
||||||
|
|
||||||
const ThemeData::ThemeElement* elem = theme->getElement(view, element, "datetime");
|
const ThemeData::ThemeElement* elem {theme->getElement(view, element, "datetime")};
|
||||||
if (!elem)
|
if (!elem)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
|
@ -105,7 +105,7 @@ void VideoComponent::applyTheme(const std::shared_ptr<ThemeData>& theme,
|
||||||
(properties ^ ThemeFlags::SIZE) |
|
(properties ^ ThemeFlags::SIZE) |
|
||||||
((properties & (ThemeFlags::SIZE | POSITION)) ? ORIGIN : 0));
|
((properties & (ThemeFlags::SIZE | POSITION)) ? ORIGIN : 0));
|
||||||
|
|
||||||
const ThemeData::ThemeElement* elem = theme->getElement(view, element, "video");
|
const ThemeData::ThemeElement* elem {theme->getElement(view, element, "video")};
|
||||||
|
|
||||||
mLegacyTheme = theme->isLegacyTheme();
|
mLegacyTheme = theme->isLegacyTheme();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue