Skip to content

Commit 326eb8e

Browse files
EricDDKhuangwei1024
authored andcommitted
fix assign nullptr to std::string (cocos2d#19615)
1 parent 631b9ef commit 326eb8e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cocos/editor-support/cocostudio/CCBone.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,14 @@ Bone::~Bone(void)
9696

9797
bool Bone::init()
9898
{
99-
return Bone::init(nullptr);
99+
return Bone::init("");
100100
}
101101

102-
103102
bool Bone::init(const std::string& name)
104103
{
105104
bool bRet = false;
106105
do
107106
{
108-
109107
_name = name;
110108

111109
CC_SAFE_DELETE(_tweenData);

0 commit comments

Comments
 (0)