From 1716ef46bbfe9826014bb32293561b4c1174a181 Mon Sep 17 00:00:00 2001 From: Maarten ter Huurne Date: Thu, 28 Aug 2008 19:22:36 +0000 Subject: Use compact syntax for converting C strings to C++ strings. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@374 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DolphinWX/src/MainNoGUI.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Source/Core/DolphinWX/src/MainNoGUI.cpp') diff --git a/Source/Core/DolphinWX/src/MainNoGUI.cpp b/Source/Core/DolphinWX/src/MainNoGUI.cpp index 57dcba4d7b..917e51ee35 100644 --- a/Source/Core/DolphinWX/src/MainNoGUI.cpp +++ b/Source/Core/DolphinWX/src/MainNoGUI.cpp @@ -67,11 +67,10 @@ int main(int argc, char* argv[]) puts("Please supply at least one argument - the ISO to boot.\n"); return(1); } - std::string temp; - temp.insert(0, argv[1]); //Need to convert to C++ style string first + std::string bootFile(argv[1]); DetectCPU(); - BootManager::BootCore(temp); + BootManager::BootCore(bootFile); usleep(2000 * 1000 * 1000); // while (!getch()) { // usleep(20); -- cgit v1.2.3