mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
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:
@@ -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
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user