mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-08 17:13:57 -07:00
const ref where possible
This commit is contained in:
parent
8891cc6d04
commit
5756d10f76
1 changed files with 2 additions and 2 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue