summaryrefslogtreecommitdiffstats
path: root/api/logic/settings/PassthroughSetting.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2018-07-15 14:51:05 +0200
committerPetr Mrázek <peterix@gmail.com>2018-07-15 14:51:05 +0200
commitbbb3b3e6f6e3c0f95873f22e6d0a4aaf350f49d9 (patch)
treee6497e304b7b9368367565fbc7c06efab1124b1c /api/logic/settings/PassthroughSetting.cpp
parent03280cc62e75f8073f8d3d9e9e3952acf21fa77d (diff)
downloadMultiMC-bbb3b3e6f6e3c0f95873f22e6d0a4aaf350f49d9.tar
MultiMC-bbb3b3e6f6e3c0f95873f22e6d0a4aaf350f49d9.tar.gz
MultiMC-bbb3b3e6f6e3c0f95873f22e6d0a4aaf350f49d9.tar.lz
MultiMC-bbb3b3e6f6e3c0f95873f22e6d0a4aaf350f49d9.tar.xz
MultiMC-bbb3b3e6f6e3c0f95873f22e6d0a4aaf350f49d9.zip
NOISSUE tabs -> spaces
Diffstat (limited to 'api/logic/settings/PassthroughSetting.cpp')
-rw-r--r--api/logic/settings/PassthroughSetting.cpp58
1 files changed, 29 insertions, 29 deletions
diff --git a/api/logic/settings/PassthroughSetting.cpp b/api/logic/settings/PassthroughSetting.cpp
index 5da5d11c..58522385 100644
--- a/api/logic/settings/PassthroughSetting.cpp
+++ b/api/logic/settings/PassthroughSetting.cpp
@@ -16,54 +16,54 @@
#include "PassthroughSetting.h"
PassthroughSetting::PassthroughSetting(std::shared_ptr<Setting> other, std::shared_ptr<Setting> gate)
- : Setting(other->configKeys(), QVariant())
+ : Setting(other->configKeys(), QVariant())
{
- Q_ASSERT(other);
- m_other = other;
- m_gate = gate;
+ Q_ASSERT(other);
+ m_other = other;
+ m_gate = gate;
}
bool PassthroughSetting::isOverriding() const
{
- if(!m_gate)
- {
- return false;
- }
- return m_gate->get().toBool();
+ if(!m_gate)
+ {
+ return false;
+ }
+ return m_gate->get().toBool();
}
QVariant PassthroughSetting::defValue() const
{
- if(isOverriding())
- {
- return m_other->get();
- }
- return m_other->defValue();
+ if(isOverriding())
+ {
+ return m_other->get();
+ }
+ return m_other->defValue();
}
QVariant PassthroughSetting::get() const
{
- if(isOverriding())
- {
- return Setting::get();
- }
- return m_other->get();
+ if(isOverriding())
+ {
+ return Setting::get();
+ }
+ return m_other->get();
}
void PassthroughSetting::reset()
{
- if(isOverriding())
- {
- Setting::reset();
- }
- m_other->reset();
+ if(isOverriding())
+ {
+ Setting::reset();
+ }
+ m_other->reset();
}
void PassthroughSetting::set(QVariant value)
{
- if(isOverriding())
- {
- Setting::set(value);
- }
- m_other->set(value);
+ if(isOverriding())
+ {
+ Setting::set(value);
+ }
+ m_other->set(value);
}