Added const qualifier to CC_PROPERTY get method

This macro is inconsistent with others, get methods should be const.
This commit is contained in:
Aaron 2015-09-19 01:54:52 +01:00
parent cf342a830a
commit 83db28ac9e
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ public: virtual const varType& get##funName(void) const;
*/
#define CC_PROPERTY(varType, varName, funName)\
protected: varType varName;\
public: virtual varType get##funName(void);\
public: virtual varType get##funName(void) const;\
public: virtual void set##funName(varType var);
#define CC_PROPERTY_PASS_BY_REF(varType, varName, funName)\