Handle a bunch more clang warnings

This commit is contained in:
Petr Mrázek
2014-07-01 01:23:49 +02:00
parent dd0752e69f
commit 8b86306d48
14 changed files with 19 additions and 18 deletions

View File

@ -27,7 +27,7 @@ namespace Ui
class ScreenshotsPage;
}
class ScreenShot;
struct ScreenShot;
class ScreenshotList;
class ImgurAlbumCreation;

View File

@ -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)
{