Fix warnings about assigned/unused variables (gcc 4.6).

Change-Id: Ifdeb2e25ecb0e11a78c5353aaf68782464c9a676
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
Friedemann Kleint
2011-11-08 11:05:07 +01:00
parent 7daf1c58af
commit 1c4d9e4871
2 changed files with 1 additions and 3 deletions

View File

@@ -196,7 +196,6 @@ void ContextPaneWidgetRectangle::onGradientClicked()
m_hasGradient = true;
QLinearGradient gradient;
QGradientStops stops;
QColor color = ui->colorColorButton->convertedColor();
stops.append(QGradientStop(0, ui->colorColorButton->convertedColor()));
stops.append(QGradientStop(1, Qt::white));
gradient.setStops(stops);

View File

@@ -172,7 +172,7 @@ void TimelineView::drawSelectionBoxes(QPainter *p)
QPen lightPen(QBrush(QColor(Qt::blue).lighter(130)), 2);
p->setPen(lightPen);
int x,y,width,rowNumber,eventType;
int x, y, width, eventType;
for (int i = fromIndex; i <= toIndex; i++) {
if (m_eventList->getHash(i) != id)
continue;
@@ -193,7 +193,6 @@ void TimelineView::drawSelectionBoxes(QPainter *p)
if (width<1)
width = 1;
rowNumber = y/DefaultRowHeight;
p->drawRect(x,y,width,DefaultRowHeight);
}
}