[calendar] Initialize the ints properly

Fixes a cppcheck report
This commit is contained in:
Martin Klapetek 2014-08-12 23:50:10 +02:00
parent 5478c7e3c2
commit 2f3c411956

View File

@ -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);