Commit 7b5745c5 authored by Kai Koehne's avatar Kai Koehne Committed by Eike Ziller

Core: Fix compiler warning about unused variables

settings(), globalSettings() are nowadays static methods.

Change-Id: I7083d639ac2bb28c0319c8cb1f8459adc8e254b8
Reviewed-by: default avatarEike Ziller <eike.ziller@nokia.com>
parent 9c7b96c6
......@@ -94,15 +94,15 @@ static T *createToolChain(const QString &id)
static QString globalSettingsFileName()
{
ExtensionSystem::PluginManager *pm = ExtensionSystem::PluginManager::instance();
return QFileInfo(pm->globalSettings()->fileName()).absolutePath()
QSettings *globalSettings = ExtensionSystem::PluginManager::globalSettings();
return QFileInfo(globalSettings->fileName()).absolutePath()
+ QLatin1String(QTVERSION_SDK_FILENAME);
}
static QString settingsFileName(const QString &path)
{
ExtensionSystem::PluginManager *pm = ExtensionSystem::PluginManager::instance();
QFileInfo settingsLocation(pm->settings()->fileName());
QSettings *settings = ExtensionSystem::PluginManager::settings();
QFileInfo settingsLocation(settings->fileName());
return settingsLocation.absolutePath() + path;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment