[calendar] Initialize the ints properly
Fixes a cppcheck report
This commit is contained in:
parent
5478c7e3c2
commit
2f3c411956
@ -200,8 +200,8 @@ void Calendar::updateData()
|
||||
|
||||
int totalDays = m_days * m_weeks;
|
||||
|
||||
int daysBeforeCurrentMonth;
|
||||
int daysAfterCurrentMonth;
|
||||
int daysBeforeCurrentMonth = 0;
|
||||
int daysAfterCurrentMonth = 0;
|
||||
|
||||
QDate firstDay(m_displayedDate.year(), m_displayedDate.month(), 1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user