From: grumbel Date: Sun, 6 Dec 2009 01:51:31 +0000 (+0000) Subject: Small const cleanup X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=5dc4c3098bff1aea0e92e4418351dc0866116c61;p=supertux.git Small const cleanup git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@6176 837edb03-e0f3-0310-88ca-d4d4e8b29345 --- 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();