summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/Debugger/BreakpointWindow.cpp
diff options
context:
space:
mode:
authorTillmann Karras <tilkax@gmail.com>2014-03-15 03:29:53 +0100
committerTillmann Karras <tilkax@gmail.com>2014-03-17 02:55:57 +0100
commitfa3cc057530570ba4113e022b3f44c2483a87684 (patch)
tree346ce646a11c31b659b084cb9510ce5e03e357ba /Source/Core/DolphinWX/Debugger/BreakpointWindow.cpp
parent7e39cf3b0d1bd41f830c8afe792bd0f2d9c8f2a6 (diff)
Turn some non-const refs into pointers
Diffstat (limited to 'Source/Core/DolphinWX/Debugger/BreakpointWindow.cpp')
-rw-r--r--Source/Core/DolphinWX/Debugger/BreakpointWindow.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/Source/Core/DolphinWX/Debugger/BreakpointWindow.cpp b/Source/Core/DolphinWX/Debugger/BreakpointWindow.cpp
index b650ac2655..1fa0183cdb 100644
--- a/Source/Core/DolphinWX/Debugger/BreakpointWindow.cpp
+++ b/Source/Core/DolphinWX/Debugger/BreakpointWindow.cpp
@@ -112,7 +112,7 @@ CBreakPointWindow::CBreakPointWindow(CCodeWindow* _pCodeWindow, wxWindow* parent
m_BreakPointListView = new CBreakPointView(this, wxID_ANY);
m_mgr.AddPane(new CBreakPointBar(this, wxID_ANY), wxAuiPaneInfo().ToolbarPane().Top().
- LeftDockable(false).RightDockable(false).BottomDockable(false).Floatable(false));
+ LeftDockable(false).RightDockable(false).BottomDockable(false).Floatable(false));
m_mgr.AddPane(m_BreakPointListView, wxAuiPaneInfo().CenterPane());
m_mgr.Update();
}
@@ -195,12 +195,19 @@ void CBreakPointWindow::LoadAll(wxCommandEvent& WXUNUSED(event))
MemChecks::TMemChecksStr newmcs;
if (!ini.Load(File::GetUserPath(F_DEBUGGERCONFIG_IDX)))
+ {
return;
+ }
- if (ini.GetLines("BreakPoints", newbps, false))
+ if (ini.GetLines("BreakPoints", &newbps, false))
+ {
PowerPC::breakpoints.AddFromStrings(newbps);
- if (ini.GetLines("MemoryChecks", newmcs, false))
+ }
+
+ if (ini.GetLines("MemoryChecks", &newmcs, false))
+ {
PowerPC::memchecks.AddFromStrings(newmcs);
+ }
NotifyUpdate();
}