const ref where possible

This commit is contained in:
Bruno Alexandre Rosa 2026-03-30 00:34:06 -03:00 committed by RickyRister
parent 8891cc6d04
commit 5756d10f76

View file

@ -1577,9 +1577,9 @@ void PlayerActions::actCardCounterTrigger()
player->setDialogSemaphore(true); player->setDialogSemaphore(true);
const auto &cardCounterSettings = SettingsCache::instance().cardCounters(); const auto &cardCounterSettings = SettingsCache::instance().cardCounters();
const auto counterName = cardCounterSettings.displayName(counterId); const auto &counterName = cardCounterSettings.displayName(counterId);
auto selectedItems = player->getGameScene()->selectedItems(); const auto &selectedItems = player->getGameScene()->selectedItems();
const QString oldValueForDlg = [&selectedItems, &counterId] { const QString oldValueForDlg = [&selectedItems, &counterId] {
// If a single card is selected, we show the old value in the dialog. Otherwise, we show "x" // If a single card is selected, we show the old value in the dialog. Otherwise, we show "x"