Make CCDictionaryExt::operator= return type not const

This commit is contained in:
mat 2023-03-10 09:22:48 -03:00 committed by GitHub
parent 8310485fc0
commit 174136ce0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -880,7 +880,7 @@ namespace geode::cocos {
if (m_dict) m_dict->release(); if (m_dict) m_dict->release();
} }
CCDictionaryExt const& operator=(cocos2d::CCDictionary* d) { CCDictionaryExt& operator=(cocos2d::CCDictionary* d) {
m_dict->release(); m_dict->release();
m_dict = d; m_dict = d;
m_dict->retain(); m_dict->retain();