From 2f3c4119568e3f8acc60e1c7e900e52393fb3adc Mon Sep 17 00:00:00 2001 From: Martin Klapetek Date: Tue, 12 Aug 2014 23:50:10 +0200 Subject: [PATCH] [calendar] Initialize the ints properly Fixes a cppcheck report --- src/declarativeimports/calendar/calendar.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/declarativeimports/calendar/calendar.cpp b/src/declarativeimports/calendar/calendar.cpp index 03d145452..a766acbfd 100644 --- a/src/declarativeimports/calendar/calendar.cpp +++ b/src/declarativeimports/calendar/calendar.cpp @@ -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);