Silence a warning

Commit 11f6162739 removed
the usage of userProvidedTheme leading to "unused variable"
warning. Remove last traces of userProvidedTheme.

Change-Id: I187d7ac335ec659a5e8a52e38ffe075a98446586
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
This commit is contained in:
Niels Weber
2015-11-09 15:28:57 +01:00
parent e6454be43f
commit 2dc660e698

View File

@@ -105,7 +105,6 @@ void CorePlugin::parseArguments(const QStringList &arguments)
Id themeId = settingsThemeId; Id themeId = settingsThemeId;
QColor overrideColor; QColor overrideColor;
bool presentationMode = false; bool presentationMode = false;
bool userProvidedTheme = false;
for (int i = 0; i < arguments.size(); ++i) { for (int i = 0; i < arguments.size(); ++i) {
if (arguments.at(i) == QLatin1String("-color")) { if (arguments.at(i) == QLatin1String("-color")) {
@@ -117,7 +116,6 @@ void CorePlugin::parseArguments(const QStringList &arguments)
presentationMode = true; presentationMode = true;
if (arguments.at(i) == QLatin1String("-theme")) { if (arguments.at(i) == QLatin1String("-theme")) {
themeId = Id::fromString(arguments.at(i + 1)); themeId = Id::fromString(arguments.at(i + 1));
userProvidedTheme = true;
i++; i++;
} }
} }