From dd634b340778627d3d496d82217fb468f9c8296b Mon Sep 17 00:00:00 2001 From: Ingo Ruhnke Date: Sun, 6 Dec 2009 01:51:31 +0000 Subject: [PATCH] Small const cleanup SVN-Revision: 6176 --- src/supertux/tile.cpp | 4 ++-- src/supertux/tile.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/supertux/tile.cpp b/src/supertux/tile.cpp index 516102057..2a57a64b6 100644 --- a/src/supertux/tile.cpp +++ b/src/supertux/tile.cpp @@ -30,7 +30,7 @@ Tile::Tile(const TileSet& new_tileset) : { } -Tile::Tile(const TileSet& new_tileset, std::vector images, Rect rect, +Tile::Tile(const TileSet& new_tileset, const std::vector& images, Rect rect, uint32_t attributes, uint32_t data, float animfps) : tileset(new_tileset), imagespecs(), @@ -39,7 +39,7 @@ Tile::Tile(const TileSet& new_tileset, std::vector images, Rect rec data(data), anim_fps(animfps) { - for(std::vector::iterator i = images.begin(); i != images.end(); ++i) { + for(std::vector::const_iterator i = images.begin(); i != images.end(); ++i) { imagespecs.push_back(ImageSpec(*i, rect)); } correct_attributes(); diff --git a/src/supertux/tile.hpp b/src/supertux/tile.hpp index 58ebedbc3..5efe59999 100644 --- a/src/supertux/tile.hpp +++ b/src/supertux/tile.hpp @@ -108,7 +108,7 @@ private: public: Tile(const TileSet& tileset); - Tile(const TileSet& tileset, std::vector images, Rect rect, + Tile(const TileSet& tileset, const std::vector& images, Rect rect, uint32_t attributes, uint32_t data, float animfps); ~Tile(); -- 2.11.0