mirror of https://github.com/axmolengine/axmol.git
Added const qualifier to CC_PROPERTY get method
This macro is inconsistent with others, get methods should be const.
This commit is contained in:
parent
cf342a830a
commit
83db28ac9e
|
@ -150,7 +150,7 @@ public: virtual const varType& get##funName(void) const;
|
||||||
*/
|
*/
|
||||||
#define CC_PROPERTY(varType, varName, funName)\
|
#define CC_PROPERTY(varType, varName, funName)\
|
||||||
protected: varType varName;\
|
protected: varType varName;\
|
||||||
public: virtual varType get##funName(void);\
|
public: virtual varType get##funName(void) const;\
|
||||||
public: virtual void set##funName(varType var);
|
public: virtual void set##funName(varType var);
|
||||||
|
|
||||||
#define CC_PROPERTY_PASS_BY_REF(varType, varName, funName)\
|
#define CC_PROPERTY_PASS_BY_REF(varType, varName, funName)\
|
||||||
|
|
Loading…
Reference in New Issue