Misc. clang static analyzer fixes

This commit is contained in:
Émilie Feral
2020-12-08 10:45:49 +01:00
committed by LeaNumworks
parent c3ceb0074f
commit fe4e2e3e9d
5 changed files with 5 additions and 1 deletions

View File

@@ -15,6 +15,7 @@ LocalizationController::ContentView::ContentView(LocalizationController * contro
{
m_countryTitleMessage.setBackgroundColor(Palette::WallScreen);
m_countryTitleMessage.setAlignment(0.5f, 0.5f);
assert(k_numberOfCountryWarningLines == 2); // textMessages is not overflowed
I18n::Message textMessages[k_numberOfCountryWarningLines] = {I18n::Message::CountryWarning1, I18n::Message::CountryWarning2};
for (int i = 0; i < k_numberOfCountryWarningLines; i++) {
m_countryWarningLines[i].setBackgroundColor(Palette::WallScreen);