From 34e9b482d25a3c0ee706f9ddae80520bb3d8c853 Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Tue, 17 May 2011 21:05:47 +0100 Subject: [PATCH] More compile time nits Fix some nits missed in last nit cleanup. No functional change, just cleans up compiler warning messages. --- qxt/src/qxtscheduleitemdelegate.cpp | 4 ++-- qxt/src/qxtscheduleview.cpp | 6 +++--- src/Zones.cpp | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) 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)