diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-02-12 13:24:40 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-02-12 13:24:40 -0800 |
commit | af5ad2033dfc5749a1b195b13c198d439c7ed4a5 (patch) | |
tree | 063c801de410ee4ad48de9099f2d4fe371056b68 /qt-ui/profilegraphics.cpp | |
parent | c86822c2f47973528b3441d633b2b9df98ed465a (diff) | |
download | subsurface-af5ad2033dfc5749a1b195b13c198d439c7ed4a5.tar.gz |
Don't redeclare variables of the same name
This isn't broken, but it's confusing.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profilegraphics.cpp')
-rw-r--r-- | qt-ui/profilegraphics.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qt-ui/profilegraphics.cpp b/qt-ui/profilegraphics.cpp index 6ae765d7a..c63f7159d 100644 --- a/qt-ui/profilegraphics.cpp +++ b/qt-ui/profilegraphics.cpp @@ -145,7 +145,7 @@ void ProfileGraphicsView::contextMenuEvent(QContextMenuEvent* event) EventItem *item = dynamic_cast<EventItem*>(i); if (!item) continue; - QAction *action = new QAction(&m); + action = new QAction(&m); action->setText(tr("Remove Event")); action->setData(QVariant::fromValue<void*>(item)); // so we know what to remove. connect(action, SIGNAL(triggered(bool)), this, SLOT(removeEvent())); @@ -1192,11 +1192,11 @@ void ProfileGraphicsView::plot_depth_profile() item->setPen(pen); scene()->addItem(item); - struct text_render_options tro = {DEPTH_TEXT_SIZE, MEAN_DEPTH, LEFT, TOP}; + struct text_render_options depth_tro = {DEPTH_TEXT_SIZE, MEAN_DEPTH, LEFT, TOP}; QString depthLabel = get_depth_string(gc.pi.meandepth, true, true); - plot_text(&tro, QPointF(gc.leftx, gc.pi.meandepth), depthLabel, item); + plot_text(&depth_tro, QPointF(gc.leftx, gc.pi.meandepth), depthLabel, item); tro.hpos = RIGHT; - plot_text(&tro, QPointF(gc.pi.entry[gc.pi.nr - 1].sec, gc.pi.meandepth), depthLabel, item); + plot_text(&depth_tro, QPointF(gc.pi.entry[gc.pi.nr - 1].sec, gc.pi.meandepth), depthLabel, item); } #if 0 |