From 5dc4c3098bff1aea0e92e4418351dc0866116c61 Mon Sep 17 00:00:00 2001 From: grumbel Date: Sun, 6 Dec 2009 01:51:31 +0000 Subject: [PATCH] Small const cleanup git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@6176 837edb03-e0f3-0310-88ca-d4d4e8b29345 --- 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