Commit 51df3d05 authored by Tobias Hunger's avatar Tobias Hunger

SettingsAccessorPrivate:Settings: Remove constructors

Makes the class even simpler. Those constructors don't do anything.

Change-Id: Ifb255047de966ebd950b874b82ec86caacbbbbc8
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent 4b40aa5b
......@@ -416,9 +416,6 @@ public:
class Settings
{
public:
Settings() {}
Settings(const QVariantMap &map) : map(map) {}
bool isValid() const;
QVariantMap map;
......@@ -656,7 +653,8 @@ bool SettingsAccessor::saveSettings(const QVariantMap &map, QWidget *parent) con
backupUserFile();
SettingsAccessorPrivate::Settings settings(map);
SettingsAccessorPrivate::Settings settings;
settings.map = map;
settings.path = FileName::fromString(defaultFileName(m_userSuffix));
const QVariant &shared = m_project->property(SHARED_SETTINGS);
if (shared.isValid())
......
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