diff options
author | Owen Williams <owilliams@mixxx.org> | 2015-05-07 11:47:16 -0400 |
---|---|---|
committer | Owen Williams <owilliams@mixxx.org> | 2015-05-07 11:47:16 -0400 |
commit | 65048eccc7c67f5aa95ee8b80b2423f5e433a2a3 (patch) | |
tree | b59218637ba421fb96d23444fddbea2d9d33a5d9 /src/controlobject.cpp | |
parent | 116d7326a1a35f21643fff77acebd1dfaf0b6a53 (diff) |
Revert "Revert "Revert "Allow to set a value when initalize new COs"""
This reverts commit 759e142ef6437d3a980579f74269a01957ff723d.
Diffstat (limited to 'src/controlobject.cpp')
-rw-r--r-- | src/controlobject.cpp | 8 |
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. |