summaryrefslogtreecommitdiff
path: root/Source/Core/Common/BreakPoints.cpp
diff options
context:
space:
mode:
authorskidau <skidau@gmail.com>2014-10-26 23:23:45 +1100
committerskidau <skidau@gmail.com>2014-10-26 23:23:45 +1100
commit4570dd7eeb9033c0e349d3a9f0126f24010b0699 (patch)
tree6e8704557eb9843e54ccc33675d4949900d3376c /Source/Core/Common/BreakPoints.cpp
parent7eebbcdca7f5dff60aff387f789bc1292905c68a (diff)
Fixed a crash that would occur if a new watch were added by entering a watch name.
Code style updates.
Diffstat (limited to 'Source/Core/Common/BreakPoints.cpp')
-rw-r--r--Source/Core/Common/BreakPoints.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Common/BreakPoints.cpp b/Source/Core/Common/BreakPoints.cpp
index ece8add228..8772a2287f 100644
--- a/Source/Core/Common/BreakPoints.cpp
+++ b/Source/Core/Common/BreakPoints.cpp
@@ -280,7 +280,7 @@ void Watches::Update(int count, u32 em_address)
m_Watches.at(count).iAddress = em_address;
}
-void Watches::UpdateName(int count, std::string name)
+void Watches::UpdateName(int count, const std::string name)
{
m_Watches.at(count).name = name;
}