From ab596ef3f4215f792feaa9ca1dfe5acb74c67328 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 26 Aug 2012 02:48:32 +0300 Subject: Add const to some classes. --- src/game.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/game.h') diff --git a/src/game.h b/src/game.h index 6fc42be42..5ea45863a 100644 --- a/src/game.h +++ b/src/game.h @@ -83,7 +83,7 @@ class Game void handleMove(); - void handleActive(SDL_Event &event); + void handleActive(const SDL_Event &event); void changeMap(const std::string &mapName); @@ -107,17 +107,17 @@ class Game static void closeDialogs(); - void videoResized(int width, int height); + void videoResized(const int width, const int height) const; - bool getValidSpeed() + bool getValidSpeed() const { return mValidSpeed; } static bool createScreenshot(); - static bool saveScreenshot(SDL_Surface *screenshot); + static bool saveScreenshot(SDL_Surface *const screenshot); private: - void updateHistory(SDL_Event &event); + void updateHistory(const SDL_Event &event); void checkKeys(); -- cgit v1.2.3-60-g2f50