Skip to content

Commit

Permalink
prevent unnecessary QString construction
Browse files Browse the repository at this point in the history
  • Loading branch information
Swiftb0y committed Aug 30, 2023
1 parent 0410ae4 commit 5d63b5c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/vinylcontrol/vinylcontrolmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ VinylControlManager::~VinylControlManager() {
for (int i = 0; i < m_iNumConfiguredDecks; ++i) {
QString group = PlayerManager::groupForDeck(i);
m_pConfig->setValue(ConfigKey(group, "vinylcontrol_enabled"), false);
m_pConfig->set(ConfigKey(VINYL_PREF_KEY, QString("cueing_ch%1").arg(i + 1)),
ConfigValue(static_cast<int>(ControlObject::get(
ConfigKey(group, "vinylcontrol_cueing")))));
m_pConfig->set(ConfigKey(VINYL_PREF_KEY, QString("mode_ch%1").arg(i + 1)),
ConfigValue(static_cast<int>(ControlObject::get(
ConfigKey(group, "vinylcontrol_mode")))));
m_pConfig->set(ConfigKey(VINYL_PREF_KEY, QStringLiteral("cueing_ch%1").arg(i + 1)),
ConfigValue(static_cast<int>(ControlObject::get(
ConfigKey(group, "vinylcontrol_cueing")))));
m_pConfig->set(ConfigKey(VINYL_PREF_KEY, QStringLiteral("mode_ch%1").arg(i + 1)),
ConfigValue(static_cast<int>(ControlObject::get(
ConfigKey(group, "vinylcontrol_mode")))));
}
}

Expand Down

0 comments on commit 5d63b5c

Please sign in to comment.