summaryrefslogtreecommitdiffstats
path: root/gui/pages
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-07-01 01:23:49 +0200
committerPetr Mrázek <peterix@gmail.com>2014-07-01 01:23:49 +0200
commit8b86306d48fff4a6cc9291d00e1211a5e5dc1903 (patch)
treec50b3a924821d9cf7f7ac789616fb9b26b8e2690 /gui/pages
parentdd0752e69f33c6092a940091b8a332b18e6be76d (diff)
downloadMultiMC-8b86306d48fff4a6cc9291d00e1211a5e5dc1903.tar
MultiMC-8b86306d48fff4a6cc9291d00e1211a5e5dc1903.tar.gz
MultiMC-8b86306d48fff4a6cc9291d00e1211a5e5dc1903.tar.lz
MultiMC-8b86306d48fff4a6cc9291d00e1211a5e5dc1903.tar.xz
MultiMC-8b86306d48fff4a6cc9291d00e1211a5e5dc1903.zip
Handle a bunch more clang warnings
Diffstat (limited to 'gui/pages')
-rw-r--r--gui/pages/ScreenshotsPage.h2
-rw-r--r--gui/pages/VersionPage.cpp6
2 files changed, 1 insertions, 7 deletions
diff --git a/gui/pages/ScreenshotsPage.h b/gui/pages/ScreenshotsPage.h
index 4098e5e4..78307f6a 100644
--- a/gui/pages/ScreenshotsPage.h
+++ b/gui/pages/ScreenshotsPage.h
@@ -27,7 +27,7 @@ namespace Ui
class ScreenshotsPage;
}
-class ScreenShot;
+struct ScreenShot;
class ScreenshotList;
class ImgurAlbumCreation;
diff --git a/gui/pages/VersionPage.cpp b/gui/pages/VersionPage.cpp
index 34599111..d3df5b46 100644
--- a/gui/pages/VersionPage.cpp
+++ b/gui/pages/VersionPage.cpp
@@ -214,10 +214,7 @@ void VersionPage::on_moveLibraryUpBtn_clicked()
try
{
const int row = ui->libraryTreeView->selectionModel()->selectedRows().first().row();
- const int newRow = 0;
m_version->move(row, InstanceVersion::MoveUp);
- // ui->libraryTreeView->selectionModel()->setCurrentIndex(m_version->index(newRow),
- // QItemSelectionModel::ClearAndSelect);
}
catch (MMCError &e)
{
@@ -234,10 +231,7 @@ void VersionPage::on_moveLibraryDownBtn_clicked()
try
{
const int row = ui->libraryTreeView->selectionModel()->selectedRows().first().row();
- const int newRow = 0;
m_version->move(row, InstanceVersion::MoveDown);
- // ui->libraryTreeView->selectionModel()->setCurrentIndex(m_version->index(newRow),
- // QItemSelectionModel::ClearAndSelect);
}
catch (MMCError &e)
{