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

Core: Fix compiler warning about unused variables

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

Change-Id: I7083d639ac2bb28c0319c8cb1f8459adc8e254b8
Reviewed-by: default avatarEike Ziller <>
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()
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;
Supports Markdown
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