Bug #1381
Different declaration on CCLayerColor::setContentSize
| Status: | Closed | Start date: | 2012-07-03 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | % Done: | 100% |
||
| Category: | all | |||
| Target version: | cocos2d-2.0-x-2.0.2 |
Description
See this issue https://github.com/cocos2d/cocos2d-x/issues/1079
CCLayerColor::setContentSize(const CCSize& size) didn't override CCNode::setContentSize(CCSize, size), which is declared as CC_PROPERTY(CCSize, m_tContentSize, ContentSize)
History
Updated by Minggo Zhang 11 months ago
- Assignee set to Irvin Peng
Updated by Minggo Zhang 11 months ago
- Status changed from New to Closed
Updated by Minggo Zhang 10 months ago
- Status changed from Closed to In Progress
Now the resolution is change CCNode::setContentSize(CCSize &size) to CCNode::setContentSize(CCSize size).
I think we should change setContentSize(CCSize size) to setContentSize(CCSize &size) in subclass.
Updated by Minggo Zhang 10 months ago
- Status changed from In Progress to Resolved
- % Done changed from 0 to 100
Updated by Minggo Zhang 9 months ago
- Status changed from Resolved to Closed