summaryrefslogtreecommitdiffstats
path: root/api/logic/settings/OverrideSetting.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'api/logic/settings/OverrideSetting.cpp')
-rw-r--r--api/logic/settings/OverrideSetting.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/api/logic/settings/OverrideSetting.cpp b/api/logic/settings/OverrideSetting.cpp
index a3d48e03..1efdebac 100644
--- a/api/logic/settings/OverrideSetting.cpp
+++ b/api/logic/settings/OverrideSetting.cpp
@@ -1,4 +1,4 @@
-/* Copyright 2013-2018 MultiMC Contributors
+/* Copyright 2013-2019 MultiMC Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,39 +16,39 @@
#include "OverrideSetting.h"
OverrideSetting::OverrideSetting(std::shared_ptr<Setting> other, std::shared_ptr<Setting> gate)
- : Setting(other->configKeys(), QVariant())
+ : Setting(other->configKeys(), QVariant())
{
- Q_ASSERT(other);
- Q_ASSERT(gate);
- m_other = other;
- m_gate = gate;
+ Q_ASSERT(other);
+ Q_ASSERT(gate);
+ m_other = other;
+ m_gate = gate;
}
bool OverrideSetting::isOverriding() const
{
- return m_gate->get().toBool();
+ return m_gate->get().toBool();
}
QVariant OverrideSetting::defValue() const
{
- return m_other->get();
+ return m_other->get();
}
QVariant OverrideSetting::get() const
{
- if(isOverriding())
- {
- return Setting::get();
- }
- return m_other->get();
+ if(isOverriding())
+ {
+ return Setting::get();
+ }
+ return m_other->get();
}
void OverrideSetting::reset()
{
- Setting::reset();
+ Setting::reset();
}
void OverrideSetting::set(QVariant value)
{
- Setting::set(value);
+ Setting::set(value);
}