MenuBar: Remove unnecessary c_str() call

Also uses the character overload for find_last_of
This commit is contained in:
Lioncash 2018-03-27 22:27:48 -04:00
parent b637163704
commit d3283a881f
1 changed files with 2 additions and 2 deletions

View File

@ -929,7 +929,7 @@ void MenuBar::LoadSymbolMap()
g_symbolDB.LoadMap(existing_map_file); g_symbolDB.LoadMap(existing_map_file);
QMessageBox::information( QMessageBox::information(
this, tr("Information"), this, tr("Information"),
tr("Loaded symbols from '%1'").arg(QString::fromStdString(existing_map_file.c_str()))); tr("Loaded symbols from '%1'").arg(QString::fromStdString(existing_map_file)));
} }
HLE::PatchFunctions(); HLE::PatchFunctions();
@ -978,7 +978,7 @@ void MenuBar::SaveCode()
CBoot::FindMapFile(&existing_map_file, &writable_map_file); CBoot::FindMapFile(&existing_map_file, &writable_map_file);
const std::string path = const std::string path =
writable_map_file.substr(0, writable_map_file.find_last_of(".")) + "_code.map"; writable_map_file.substr(0, writable_map_file.find_last_of('.')) + "_code.map";
g_symbolDB.SaveCodeMap(path); g_symbolDB.SaveCodeMap(path);
} }