diff options
| author | Matthew Parlane <parlane@gmail.com> | 2014-02-08 18:50:37 +1300 |
|---|---|---|
| committer | Matthew Parlane <parlane@gmail.com> | 2014-02-13 17:06:30 +1300 |
| commit | 3fe05e0a9f6908c1cf9a3caad6bff1d8decf04a3 (patch) | |
| tree | 129603623669b47f44d89e83437e4f36d194c06e /Source/Core/DolphinWX/Debugger/CodeWindowFunctions.cpp | |
| parent | 079b1ba93deb8f3585f9211cfd1f73ccf16ae2a7 (diff) | |
Fix IniFile to use string& instead of char*
Also removes .c_str() usages where found.
Diffstat (limited to 'Source/Core/DolphinWX/Debugger/CodeWindowFunctions.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/Debugger/CodeWindowFunctions.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DolphinWX/Debugger/CodeWindowFunctions.cpp b/Source/Core/DolphinWX/Debugger/CodeWindowFunctions.cpp index 3582866c48..4f8f71225c 100644 --- a/Source/Core/DolphinWX/Debugger/CodeWindowFunctions.cpp +++ b/Source/Core/DolphinWX/Debugger/CodeWindowFunctions.cpp @@ -82,7 +82,7 @@ void CCodeWindow::Load() ? Parent->Perspectives[Parent->ActivePerspective].Name : "Perspective 1"); for (int i = 0; i <= IDM_CODEWINDOW - IDM_LOGWINDOW; i++) - ini.Get(_Section.c_str(), SettingName[i], &iNbAffiliation[i], 0); + ini.Get(_Section, SettingName[i], &iNbAffiliation[i], 0); // Get floating setting for (int i = 0; i <= IDM_CODEWINDOW - IDM_LOGWINDOW; i++) @@ -121,7 +121,7 @@ void CCodeWindow::Save() // Save notebook affiliations std::string _Section = "P - " + Parent->Perspectives[Parent->ActivePerspective].Name; for (int i = 0; i <= IDM_CODEWINDOW - IDM_LOGWINDOW; i++) - ini.Set(_Section.c_str(), SettingName[i], iNbAffiliation[i]); + ini.Set(_Section, SettingName[i], iNbAffiliation[i]); // Save floating setting for (int i = IDM_LOGWINDOW_PARENT; i <= IDM_CODEWINDOW_PARENT; i++) |
