diff options
author | Taeyeon Mori <orochimarufan.x3@gmail.com> | 2014-04-12 20:14:09 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2014-06-30 23:53:41 +0200 |
commit | b9fb7188226f2812a6ee3f28cd4968883d3b9e8a (patch) | |
tree | dfc57f385905ce5e423cc454f54ee1a6bb9290ad /logic | |
parent | 1f498266d8748c731a7cdcc1a0adebe4dc7a9703 (diff) | |
download | MultiMC-b9fb7188226f2812a6ee3f28cd4968883d3b9e8a.tar MultiMC-b9fb7188226f2812a6ee3f28cd4968883d3b9e8a.tar.gz MultiMC-b9fb7188226f2812a6ee3f28cd4968883d3b9e8a.tar.lz MultiMC-b9fb7188226f2812a6ee3f28cd4968883d3b9e8a.tar.xz MultiMC-b9fb7188226f2812a6ee3f28cd4968883d3b9e8a.zip |
[Clang Warnings] Remove unused variables
Diffstat (limited to 'logic')
-rw-r--r-- | logic/MinecraftProcess.cpp | 1 | ||||
-rw-r--r-- | logic/ModList.cpp | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/logic/MinecraftProcess.cpp b/logic/MinecraftProcess.cpp index a3ffedba..dfa1dee7 100644 --- a/logic/MinecraftProcess.cpp +++ b/logic/MinecraftProcess.cpp @@ -452,7 +452,6 @@ void MinecraftProcess::arm() } m_instance->setLastLaunch(); - auto &settings = m_instance->settings(); QStringList args = javaArguments(); diff --git a/logic/ModList.cpp b/logic/ModList.cpp index f7770920..3382a6ef 100644 --- a/logic/ModList.cpp +++ b/logic/ModList.cpp @@ -411,7 +411,7 @@ QVariant ModList::data(const QModelIndex &index, int role) const switch (role) { case Qt::DisplayRole: - switch (index.column()) + switch (column) { case NameColumn: return mods[row].name(); @@ -426,7 +426,7 @@ QVariant ModList::data(const QModelIndex &index, int role) const return mods[row].mmc_id(); case Qt::CheckStateRole: - switch (index.column()) + switch (column) { case ActiveColumn: return mods[row].enabled() ? Qt::Checked : Qt::Unchecked; |