summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2016-01-18 10:29:31 (GMT)
committerTobias Markmann <tm@ayena.de>2016-01-18 10:29:31 (GMT)
commit3cca16eb9c7035af82209cf2db4c5efafd90f584 (patch)
tree554f690de986ae2e3129baf095b6163f8e134959 /Swift/QtUI
parent2484b358fe5b617746e544f880a45ddbbe2f4ea8 (diff)
downloadswift-3cca16eb9c7035af82209cf2db4c5efafd90f584.zip
swift-3cca16eb9c7035af82209cf2db4c5efafd90f584.tar.bz2
Remove unused variable reported by GCC
Test-Information: Unit tests pass on Debian 8. Change-Id: I648f97a3ebd2c798df809a1f2cb37b689df94f42
Diffstat (limited to 'Swift/QtUI')
-rw-r--r--Swift/QtUI/Trellis/QtDynamicGridLayout.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Swift/QtUI/Trellis/QtDynamicGridLayout.cpp b/Swift/QtUI/Trellis/QtDynamicGridLayout.cpp
index 3f3e292..3b8adf8 100644
--- a/Swift/QtUI/Trellis/QtDynamicGridLayout.cpp
+++ b/Swift/QtUI/Trellis/QtDynamicGridLayout.cpp
@@ -35,7 +35,6 @@ QtDynamicGridLayout::~QtDynamicGridLayout() {
int QtDynamicGridLayout::addTab(QtTabbable* tab, const QString& title) {
assert(gridLayout_->rowCount() > 0 && gridLayout_->columnCount() > 0);
- int index = -1;
QPoint lastPos(0,0);
if (tabPositions_.contains(P2QSTRING(tab->getID()))) {
@@ -47,7 +46,7 @@ int QtDynamicGridLayout::addTab(QtTabbable* tab, const QString& title) {
QLayoutItem* item = gridLayout_->itemAtPosition(lastPos.y(), lastPos.x());
QtTabWidget* tabWidget = dynamic_cast<QtTabWidget*>(item ? item->widget() : 0);
if (tabWidget) {
- index = tabWidget->addTab(tab, title);
+ tabWidget->addTab(tab, title);
}
return tabWidget ? indexOf(tab) : -1;
}