forked from qt-creator/qt-creator
Utils: Make aspect settings access implicit
Generally, aspects should use fromMap/toMap, but some older pages
use {from,to}Settings with always the same ICore::settings().
To make that less intrusive on the user code side, make that globally
implicit.
Task-number: QTCREATORBUG-29167
Change-Id: I29a8e23a31eb8061bb143e93931a07c6741eb7f9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -13,7 +13,6 @@
|
||||
#endif
|
||||
|
||||
#include <coreplugin/coreconstants.h>
|
||||
#include <coreplugin/icore.h>
|
||||
|
||||
#include <utils/hostosinfo.h>
|
||||
#include <utils/qtcassert.h>
|
||||
@@ -471,14 +470,14 @@ DebuggerSettings::~DebuggerSettings()
|
||||
|
||||
void DebuggerSettings::readSettings()
|
||||
{
|
||||
all.readSettings(Core::ICore::settings());
|
||||
GdbSettings::readSettings(Core::ICore::settings());
|
||||
all.readSettings();
|
||||
GdbSettings::readSettings();
|
||||
}
|
||||
|
||||
void DebuggerSettings::writeSettings() const
|
||||
{
|
||||
all.writeSettings(Core::ICore::settings());
|
||||
GdbSettings::writeSettings(Core::ICore::settings());
|
||||
all.writeSettings();
|
||||
GdbSettings::writeSettings();
|
||||
}
|
||||
|
||||
QString DebuggerSettings::dump()
|
||||
|
||||
Reference in New Issue
Block a user