From e0f613661e485d01d5a32ae50e2314efa7908f20 Mon Sep 17 00:00:00 2001 From: scrawl Date: Sun, 30 Oct 2016 20:05:51 +0100 Subject: [PATCH] Fix char -> int, fix shadowing warning --- apps/openmw/mwscript/locals.cpp | 2 +- apps/wizard/componentselectionpage.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwscript/locals.cpp b/apps/openmw/mwscript/locals.cpp index a535910da..9dd9d338e 100644 --- a/apps/openmw/mwscript/locals.cpp +++ b/apps/openmw/mwscript/locals.cpp @@ -238,7 +238,7 @@ namespace MWScript else { char type = declarations.getType (iter->first); - char index2 = declarations.getIndex (iter->first); + int index2 = declarations.getIndex (iter->first); try { diff --git a/apps/wizard/componentselectionpage.cpp b/apps/wizard/componentselectionpage.cpp index 21a5c58d9..161e51515 100644 --- a/apps/wizard/componentselectionpage.cpp +++ b/apps/wizard/componentselectionpage.cpp @@ -24,7 +24,7 @@ Wizard::ComponentSelectionPage::ComponentSelectionPage(QWidget *parent) : } -void Wizard::ComponentSelectionPage::updateButton(QListWidgetItem *item) +void Wizard::ComponentSelectionPage::updateButton(QListWidgetItem*) { if (field(QLatin1String("installation.new")).toBool() == true) return; // Morrowind is always checked here