Skip to content

Commit

Permalink
Mark member functions const
Browse files Browse the repository at this point in the history
  • Loading branch information
rikardfalkeborn authored and Vultraz committed Aug 19, 2017
1 parent 77af7fc commit 11edc7a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/reports.hpp
Expand Up @@ -47,13 +47,13 @@ class reports
public:
context(const display_context & dc, display & disp, const tod_manager & tod, std::shared_ptr<wb::manager> wb, boost::optional<events::mouse_handler &> mhb) : dc_(dc), disp_(disp), tod_(tod), wb_(wb), mhb_(mhb) {}

const std::vector<team> & teams() { return dc_.teams(); }
const unit_map & units() { return dc_.units(); }
const gamemap & map() { return dc_.map(); }
const std::vector<team> & teams() const { return dc_.teams(); }
const unit_map & units() const { return dc_.units(); }
const gamemap & map() const { return dc_.map(); }

const display_context & dc() { return dc_; }
const display_context & dc() const { return dc_; }
display & screen() { return disp_; }
const tod_manager & tod() { return tod_; }
const tod_manager & tod() const { return tod_; }
std::shared_ptr<wb::manager> wb() { return wb_; }
boost::optional<events::mouse_handler&> mhb() { return mhb_; }

Expand Down
2 changes: 1 addition & 1 deletion src/video.hpp
Expand Up @@ -73,7 +73,7 @@ class CVideo {
void set_resolution(const unsigned width, const unsigned height);

std::pair<int,int> current_resolution();
int current_refresh_rate() { return refresh_rate_; }
int current_refresh_rate() const { return refresh_rate_; }

//functions to get the dimensions of the current video-mode
int getx() const;
Expand Down

0 comments on commit 11edc7a

Please sign in to comment.