- fix picky C++ compiler issue

This commit is contained in:
SoftCoder 2017-01-30 11:33:00 -08:00
parent e261e5860e
commit c86d87c19f
2 changed files with 3 additions and 3 deletions

View File

@ -1173,10 +1173,10 @@ void CoreData::unRegisterFontChangedCallback(std::string entityName) {
}
}
void CoreData::triggerFontChangedCallbacks(std::string fontUniqueId, Font *font) {
for (std::map<std::string, std::vector<FontChangedCallbackInterface *>>::const_iterator iterMap =
for (std::map<std::string, std::vector<FontChangedCallbackInterface *> >::const_iterator iterMap =
registeredFontChangedCallbacks.begin();
iterMap != registeredFontChangedCallbacks.end(); iterMap++) {
for (int index = 0; index < iterMap->second.size(); ++index) {
for (unsigned int index = 0; index < iterMap->second.size(); ++index) {
FontChangedCallbackInterface *cb = iterMap->second[index];
cb->FontChangedCallback(fontUniqueId, font);
}

View File

@ -114,7 +114,7 @@ private:
string battleEndLoseVideoFilenameFallback;
string battleEndLoseMusicFilename;
std::map<std::string,std::vector<FontChangedCallbackInterface *>> registeredFontChangedCallbacks;
std::map<std::string,std::vector<FontChangedCallbackInterface *> > registeredFontChangedCallbacks;
public:
enum TextureSystemType {