summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2017-05-21 22:30:53 +0200
committerPetr Mrázek <peterix@gmail.com>2017-05-21 22:30:53 +0200
commit4133247bff3c4d2e51bc2d54a301e3b99557c3ed (patch)
treeeea5fdb100d798b15cdc4a0827db1725234fb673 /api
parentc329bc73c0c3830d2c2ec024c452b1a0e48e36a8 (diff)
downloadMultiMC-4133247bff3c4d2e51bc2d54a301e3b99557c3ed.tar
MultiMC-4133247bff3c4d2e51bc2d54a301e3b99557c3ed.tar.gz
MultiMC-4133247bff3c4d2e51bc2d54a301e3b99557c3ed.tar.lz
MultiMC-4133247bff3c4d2e51bc2d54a301e3b99557c3ed.tar.xz
MultiMC-4133247bff3c4d2e51bc2d54a301e3b99557c3ed.zip
NOISSUE and even more warnings gone
Diffstat (limited to 'api')
-rw-r--r--api/logic/java/JavaUtils.cpp2
-rw-r--r--api/logic/meta/JsonFormat.cpp2
2 files changed, 1 insertions, 3 deletions
diff --git a/api/logic/java/JavaUtils.cpp b/api/logic/java/JavaUtils.cpp
index deea5953..0c2e72d7 100644
--- a/api/logic/java/JavaUtils.cpp
+++ b/api/logic/java/JavaUtils.cpp
@@ -94,7 +94,7 @@ QList<JavaInstallPtr> JavaUtils::FindJavaFromRegistryKey(DWORD keyType, QString
// Iterate until RegEnumKeyEx fails
if (numSubKeys > 0)
{
- for (int i = 0; i < numSubKeys; i++)
+ for (DWORD i = 0; i < numSubKeys; i++)
{
subKeyNameSize = 255;
retCode = RegEnumKeyEx(jreKey, i, subKeyName, &subKeyNameSize, NULL, NULL, NULL,
diff --git a/api/logic/meta/JsonFormat.cpp b/api/logic/meta/JsonFormat.cpp
index fda1cf97..fb78941f 100644
--- a/api/logic/meta/JsonFormat.cpp
+++ b/api/logic/meta/JsonFormat.cpp
@@ -28,8 +28,6 @@ using namespace Json;
namespace Meta
{
-static const int currentFormatVersion = 0;
-
// Index
static BaseEntity::Ptr parseIndexInternal(const QJsonObject &obj)
{