Commit b9a3c71b authored by Laurent Montel's avatar Laurent Montel 😁

Consti'fy

parent 03ec8986
......@@ -600,7 +600,7 @@ void GameView::addItemAndUpdate(POSITION & stItemPos)
addItem(stItemPos, true, true, true);
}
void GameView::updateItemsPosition(QList<GameItem *> gameItems)
void GameView::updateItemsPosition(const QList<GameItem *> &gameItems)
{
// These factor are needed for the different angles. So we simply can
// calculate to move the items to the left or right and up or down.
......@@ -902,7 +902,7 @@ void GameView::resizeTileset(const QSize & size)
updateItemsPosition(items());
}
void GameView::updateItemsImages(QList<GameItem *> gameItems)
void GameView::updateItemsImages(const QList<GameItem *> &gameItems)
{
for (int i = 0; i < gameItems.size(); ++i) {
GameItem * gameItem = gameItems.at(i);
......
......@@ -57,7 +57,7 @@ public:
* Items where added to the scene and should now be layouted.
*
* @param gameItems The items of which the positions should be updated. */
void updateItemsPosition(QList<GameItem *> gameItems);
void updateItemsPosition(const QList<GameItem *> &gameItems);
/**
* Updates the whole widget.
......@@ -351,7 +351,7 @@ private:
* Updates the images of the items.
*
* @param gameItem The items of which the images should be updated. */
void updateItemsImages(QList<GameItem *> gameItems);
void updateItemsImages(const QList<GameItem *> &gameItems);
/**
* Updates the order of the items. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment