From bdfcc6c8cc348da172cefdcb41ee2330a8e8daf2 Mon Sep 17 00:00:00 2001 From: pandamicro Date: Mon, 24 Mar 2014 17:44:01 +0800 Subject: [PATCH] Issue #3897: Add missed constructors --- cocos/2d/CCComponent.h | 2 +- cocos/2d/CCDrawNode.h | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cocos/2d/CCComponent.h b/cocos/2d/CCComponent.h index 342cf60cf1..97d652a940 100644 --- a/cocos/2d/CCComponent.h +++ b/cocos/2d/CCComponent.h @@ -41,7 +41,7 @@ enum { class CC_DLL Component : public Ref { -protected: +CC_CONSTRUCTOR_ACCESS: /** * @js ctor */ diff --git a/cocos/2d/CCDrawNode.h b/cocos/2d/CCDrawNode.h index 7ac74def79..2df6e67550 100644 --- a/cocos/2d/CCDrawNode.h +++ b/cocos/2d/CCDrawNode.h @@ -93,12 +93,13 @@ public: // Overrides virtual void draw(Renderer *renderer, const kmMat4 &transform, bool transformUpdated) override; - -protected: + +CC_CONSTRUCTOR_ACCESS: DrawNode(); virtual ~DrawNode(); virtual bool init(); +protected: void ensureCapacity(int count); GLuint _vao;