diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-03-23 10:11:39 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-03-23 10:11:39 -0700 |
commit | bff3588c2587fe49efa21ddafaae0800473778b6 (patch) | |
tree | 1d7c498db26f2be63b3dde52b49fbf88ed5b98eb /profile-widget | |
parent | 0cd07628072272dd0ec98df7beb91455fe0f1759 (diff) | |
download | subsurface-bff3588c2587fe49efa21ddafaae0800473778b6.tar.gz |
Undo two more unsigned changes that are no longer needed
With this master should compile without signed / unsigned warning,
hopefully without any more breakage.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile-widget')
-rw-r--r-- | profile-widget/profilewidget2.cpp | 2 | ||||
-rw-r--r-- | profile-widget/tankitem.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp index bdf2fff06..e4b03ebcb 100644 --- a/profile-widget/profilewidget2.cpp +++ b/profile-widget/profilewidget2.cpp @@ -1358,7 +1358,7 @@ void ProfileWidget2::contextMenuEvent(QContextMenuEvent *event) if (rowCount > 1) { // if we have more than one gas, offer to switch to another one QMenu *gasChange = m.addMenu(tr("Add gas change")); - for (unsigned int i = 0; i < (unsigned int)rowCount; i++) { + for (int i = 0; i < rowCount; i++) { QAction *action = new QAction(&m); action->setText(model->data(model->index(i, 0), Qt::DisplayRole).toString() + QString(tr(" (Tank %1)")).arg(i + 1)); connect(action, SIGNAL(triggered(bool)), this, SLOT(changeGas())); diff --git a/profile-widget/tankitem.cpp b/profile-widget/tankitem.cpp index d76c91fdc..aba41d660 100644 --- a/profile-widget/tankitem.cpp +++ b/profile-widget/tankitem.cpp @@ -93,7 +93,7 @@ void TankItem::modelDataChanged(const QModelIndex &topLeft, const QModelIndex &b // walk the list and figure out which tanks go where struct plot_data *entry = pInfoEntry; - unsigned int cylIdx = entry->cylinderindex; + int cylIdx = entry->cylinderindex; int i = -1; int startTime = 0; struct gasmix *gas = &diveCylinderStore.cylinder[cylIdx].gasmix; |