diff options
Diffstat (limited to 'src/engine/controls/loopingcontrol.cpp')
-rw-r--r-- | src/engine/controls/loopingcontrol.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/engine/controls/loopingcontrol.cpp b/src/engine/controls/loopingcontrol.cpp index 0f3619d0e3..6888b821b3 100644 --- a/src/engine/controls/loopingcontrol.cpp +++ b/src/engine/controls/loopingcontrol.cpp @@ -21,7 +21,7 @@ double LoopingControl::s_dBeatSizes[] = { 0.03125, 0.0625, 0.125, 0.25, 0.5, // Used to generate the beatloop_%SIZE, beatjump_%SIZE, and loop_move_%SIZE CO // ConfigKeys. -ConfigKey keyForControl(QString group, QString ctrlName, double num) { +ConfigKey keyForControl(const QString& group, const QString& ctrlName, double num) { ConfigKey key; key.group = group; key.item = ctrlName.arg(num); @@ -37,8 +37,8 @@ QList<double> LoopingControl::getBeatSizes() { return result; } -LoopingControl::LoopingControl(QString group, - UserSettingsPointer pConfig) +LoopingControl::LoopingControl(const QString& group, + UserSettingsPointer pConfig) : EngineControl(group, pConfig), m_bLoopingEnabled(false), m_bLoopRollActive(false), @@ -1305,7 +1305,7 @@ double LoopingControl::seekInsideAdjustedLoop( } } -BeatJumpControl::BeatJumpControl(QString group, double size) +BeatJumpControl::BeatJumpControl(const QString& group, double size) : m_dBeatJumpSize(size) { m_pJumpForward = new ControlPushButton( keyForControl(group, "beatjump_%1_forward", size)); @@ -1336,7 +1336,7 @@ void BeatJumpControl::slotJumpForward(double pressed) { } } -LoopMoveControl::LoopMoveControl(QString group, double size) +LoopMoveControl::LoopMoveControl(const QString& group, double size) : m_dLoopMoveSize(size) { m_pMoveForward = new ControlPushButton( keyForControl(group, "loop_move_%1_forward", size)); @@ -1367,7 +1367,7 @@ void LoopMoveControl::slotMoveForward(double v) { } } -BeatLoopingControl::BeatLoopingControl(QString group, double size) +BeatLoopingControl::BeatLoopingControl(const QString& group, double size) : m_dBeatLoopSize(size), m_bActive(false) { // This is the original beatloop control which is now deprecated. Its value |