From: Ingo Ruhnke 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=dd634b340778627d3d496d82217fb468f9c8296b;p=supertux.git Small const cleanup SVN-Revision: 6176 --- 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();