summaryrefslogtreecommitdiffstats
path: root/src/controlobject.cpp
diff options
context:
space:
mode:
authorOwen Williams <owilliams@mixxx.org>2015-05-07 11:47:16 -0400
committerOwen Williams <owilliams@mixxx.org>2015-05-07 11:47:16 -0400
commit65048eccc7c67f5aa95ee8b80b2423f5e433a2a3 (patch)
treeb59218637ba421fb96d23444fddbea2d9d33a5d9 /src/controlobject.cpp
parent116d7326a1a35f21643fff77acebd1dfaf0b6a53 (diff)
Revert "Revert "Revert "Allow to set a value when initalize new COs"""
Diffstat (limited to 'src/controlobject.cpp')
-rw-r--r--src/controlobject.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/controlobject.cpp b/src/controlobject.cpp
index 23edbec5c0..36f48529cd 100644
--- a/src/controlobject.cpp
+++ b/src/controlobject.cpp
@@ -29,8 +29,8 @@ ControlObject::ControlObject() {
}
ControlObject::ControlObject(ConfigKey key, bool bIgnoreNops, bool bTrack,
- double defaultValue, bool bPersist) {
- initialize(key, bIgnoreNops, bTrack, defaultValue, bPersist);
+ bool bPersist) {
+ initialize(key, bIgnoreNops, bTrack, bPersist);
}
ControlObject::~ControlObject() {
@@ -40,14 +40,14 @@ ControlObject::~ControlObject() {
}
void ControlObject::initialize(ConfigKey key, bool bIgnoreNops, bool bTrack,
- double defaultValue, bool bPersist) {
+ bool bPersist) {
m_key = key;
// Don't bother looking up the control if key is NULL. Prevents log spew.
if (!m_key.isNull()) {
m_pControl = ControlDoublePrivate::getControl(m_key, true, this,
bIgnoreNops, bTrack,
- defaultValue, bPersist);
+ bPersist);
}
// getControl can fail and return a NULL control even with the create flag.