From 7a5dba9eb9cd6799e24fa53c7e5a3760ec0da806 Mon Sep 17 00:00:00 2001 From: James Chen Date: Thu, 3 Apr 2014 16:46:16 +0800 Subject: [PATCH] issue #4557: Adds const for `EventListener::isEnabeld`. --- cocos/2d/CCEventListener.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/2d/CCEventListener.h b/cocos/2d/CCEventListener.h index 2cc8d47343..90136e64c2 100644 --- a/cocos/2d/CCEventListener.h +++ b/cocos/2d/CCEventListener.h @@ -84,7 +84,7 @@ public: inline void setEnabled(bool enabled) { _isEnabled = enabled; }; /** Checks whether the listener is enabled */ - inline bool isEnabled() { return _isEnabled; }; + inline bool isEnabled() const { return _isEnabled; }; protected: