Fix vexing-parse warnings

This commit is contained in:
Allofich
2023-03-29 15:42:50 +09:00
parent caf44d5be8
commit e5524f435b
9 changed files with 49 additions and 46 deletions

View File

@@ -30,6 +30,7 @@
#include "shell.h"
#include "menu.h"
#include "jfont.h"
#include "mapper.h"
#include <map>
#include <list>
#include <string>
@@ -442,7 +443,7 @@ bool MSG_Write(const char * location, const char * name) {
fprintf(out,":MENU:%s\n%s\n.\n",idname.c_str(),temp);
}
}
std::map<std::string,std::string> get_event_map(), event_map = get_event_map();
std::map<std::string,std::string> event_map = get_event_map();
for (auto it=event_map.begin();it!=event_map.end();++it) {
if (mainMenu.item_exists("mapper_"+it->first) && mainMenu.get_item("mapper_"+it->first).get_text() == it->second) continue;
if (!CodePageGuestToHostUTF8(temp,it->second.c_str()))