diff --git a/src/creatures/players/player.cpp b/src/creatures/players/player.cpp index 485d986abd2..0316b3b2936 100644 --- a/src/creatures/players/player.cpp +++ b/src/creatures/players/player.cpp @@ -3476,7 +3476,7 @@ std::shared_ptr Player::queryDestination(int32_t &index, const std::sh } // Iterate over all items in the player's containers using ContainerIterator - for (const auto& container : containers) { + for (const auto &container : containers) { ContainerIterator it(container, static_cast(g_configManager().getNumber(MAX_CONTAINER_DEPTH, __FUNCTION__))); while (it.hasNext()) { auto currentItem = *it; diff --git a/src/game/game.cpp b/src/game/game.cpp index 91693efe814..ef5ec389f7c 100644 --- a/src/game/game.cpp +++ b/src/game/game.cpp @@ -2408,7 +2408,7 @@ std::tuple Game::addItemBatch(const std::shared } } - for (const auto& container : containers) { + for (const auto &container : containers) { ContainerIterator it(container, static_cast(g_configManager().getNumber(MAX_CONTAINER_DEPTH, __FUNCTION__))); while (it.hasNext()) { auto currentItem = *it; @@ -2435,7 +2435,7 @@ std::tuple Game::addItemBatch(const std::shared // Collect remainder items to handle them after main loop std::vector> remainderItems; - for (const auto& item : items) { + for (const auto &item : items) { // Try to find a container with space auto destinationContainer = findAvailableContainer(item); if (!destinationContainer) { @@ -2475,7 +2475,7 @@ std::tuple Game::addItemBatch(const std::shared // Handle remainder items if (!remainderItems.empty()) { - for (const auto& remainderItem : remainderItems) { + for (const auto &remainderItem : remainderItems) { ret = internalAddItem(player->getTile(), remainderItem, INDEX_WHEREEVER, FLAG_NOLIMIT); if (ret != RETURNVALUE_NOERROR) { break; diff --git a/src/items/containers/container.cpp b/src/items/containers/container.cpp index d93bffabe93..0d7c842cb6e 100644 --- a/src/items/containers/container.cpp +++ b/src/items/containers/container.cpp @@ -1058,7 +1058,7 @@ std::shared_ptr ContainerIterator::getCurrentContainer() const { if (states.empty()) { return nullptr; } - const auto& top = states.back(); + const auto &top = states.back(); return top.container.lock(); } @@ -1066,6 +1066,6 @@ size_t ContainerIterator::getCurrentIndex() const { if (states.empty()) { return 0; } - const auto& top = states.back(); + const auto &top = states.back(); return top.index; }