From 5756d10f7644daf7854552ef8475c5aceb57b8e8 Mon Sep 17 00:00:00 2001 From: Bruno Alexandre Rosa <1791393+brunoalr@users.noreply.github.com> Date: Mon, 30 Mar 2026 00:34:06 -0300 Subject: [PATCH] const ref where possible --- cockatrice/src/game/player/player_actions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cockatrice/src/game/player/player_actions.cpp b/cockatrice/src/game/player/player_actions.cpp index 8fd6e9dab..1211300cc 100644 --- a/cockatrice/src/game/player/player_actions.cpp +++ b/cockatrice/src/game/player/player_actions.cpp @@ -1577,9 +1577,9 @@ void PlayerActions::actCardCounterTrigger() player->setDialogSemaphore(true); 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] { // If a single card is selected, we show the old value in the dialog. Otherwise, we show "x"