More compile time nits

Fix some nits missed in last nit cleanup. No
functional change, just cleans up compiler
warning messages.
This commit is contained in:
Mark Liversedge
2011-05-17 21:05:47 +01:00
parent 823fff9faf
commit 34e9b482d2
3 changed files with 6 additions and 6 deletions

View File

@@ -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
{
}

View File

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

View File

@@ -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<ZoneInfo> zoneInfos;
// true if zone defaults are found in the file (then we need to write them)