diff --git a/qxt/src/qxtscheduleitemdelegate.cpp b/qxt/src/qxtscheduleitemdelegate.cpp index 8d1401e52..7943f968a 100644 --- a/qxt/src/qxtscheduleitemdelegate.cpp +++ b/qxt/src/qxtscheduleitemdelegate.cpp @@ -186,7 +186,7 @@ void QxtScheduleItemDelegate::paintItemBody(QPainter *painter, const QRect rect * \a const QxtStyleOptionScheduleViewItem & option * \a const QModelIndex &index the items model index */ -void QxtScheduleItemDelegate::paintItemHeader(QPainter *painter, const QRect rect , const QxtStyleOptionScheduleViewItem & option, const QModelIndex &index) const +void QxtScheduleItemDelegate::paintItemHeader(QPainter * /*painter*/, const QRect /*rect*/ , const QxtStyleOptionScheduleViewItem & option, const QModelIndex &index) const { bool converted = false; int startUnixTime = index.data(Qxt::ItemStartTimeRole).toInt(&converted); @@ -225,7 +225,7 @@ void QxtScheduleItemDelegate::paintItemHeader(QPainter *painter, const QRect rec * \a const QxtStyleOptionScheduleViewItem & option * \a const QModelIndex &index the items model index */ -void QxtScheduleItemDelegate::paintSubItem(QPainter * /*painter*/, const QRect /*rect*/, const QxtStyleOptionScheduleViewItem & /*option*/, const QModelIndex & index) const +void QxtScheduleItemDelegate::paintSubItem(QPainter * /*painter*/, const QRect /*rect*/, const QxtStyleOptionScheduleViewItem & /*option*/, const QModelIndex & /*index*/) const { } diff --git a/qxt/src/qxtscheduleview.cpp b/qxt/src/qxtscheduleview.cpp index 8f5a9c338..f80a53139 100644 --- a/qxt/src/qxtscheduleview.cpp +++ b/qxt/src/qxtscheduleview.cpp @@ -685,9 +685,9 @@ int QxtScheduleView::cols() const if (!model()) return 0; - int cols = 0; - int timeToShow = qxt_d().m_endUnixTime - qxt_d().m_startUnixTime + 1 ; - int timePerCol = timePerColumn(); + //int cols = 0; + //int timeToShow = qxt_d().m_endUnixTime - qxt_d().m_startUnixTime + 1 ; + //int timePerCol = timePerColumn(); //Q_ASSERT(timeToShow % timePerCol == 0); //cols = (timeToShow / timePerCol); diff --git a/src/Zones.cpp b/src/Zones.cpp index d38d9e1d2..4147a0f07 100644 --- a/src/Zones.cpp +++ b/src/Zones.cpp @@ -126,7 +126,7 @@ bool Zones::read(QFile &file) // ZoneRange *range = NULL; bool in_range = false; QDate begin = date_zero, end = date_infinity; - int cp; + int cp=0; QList zoneInfos; // true if zone defaults are found in the file (then we need to write them)