From d3283a881f34b2a73944645a8e4684b8bb754a7c Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 27 Mar 2018 22:27:48 -0400 Subject: [PATCH] MenuBar: Remove unnecessary c_str() call Also uses the character overload for find_last_of --- Source/Core/DolphinQt2/MenuBar.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/DolphinQt2/MenuBar.cpp b/Source/Core/DolphinQt2/MenuBar.cpp index c9f6641a70..a92255a2ef 100644 --- a/Source/Core/DolphinQt2/MenuBar.cpp +++ b/Source/Core/DolphinQt2/MenuBar.cpp @@ -929,7 +929,7 @@ void MenuBar::LoadSymbolMap() g_symbolDB.LoadMap(existing_map_file); QMessageBox::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(); @@ -978,7 +978,7 @@ void MenuBar::SaveCode() CBoot::FindMapFile(&existing_map_file, &writable_map_file); 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); }