Skip to content

Commit

Permalink
Const'ify methods in sector.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbi committed Mar 19, 2015
1 parent 9f40a73 commit 2fee8cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/supertux/level.cpp
Expand Up @@ -174,13 +174,13 @@ Level::get_sector(const std::string& name_)
}

size_t
Level::get_sector_count()
Level::get_sector_count() const
{
return sectors.size();
}

Sector*
Level::get_sector(size_t num)
Level::get_sector(size_t num) const
{
return sectors.at(num);
}
Expand Down
4 changes: 2 additions & 2 deletions src/supertux/level.hpp
Expand Up @@ -62,8 +62,8 @@ class Level

Sector* get_sector(const std::string& name);

size_t get_sector_count();
Sector* get_sector(size_t num);
size_t get_sector_count() const;
Sector* get_sector(size_t num) const;

const TileSet *get_tileset() const
{ return tileset; }
Expand Down

0 comments on commit 2fee8cb

Please sign in to comment.