From 04ee0245e21a43d468deeb636ef00d5528718274 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 15 Nov 2014 14:06:12 -0500 Subject: [PATCH] WatchView: Pass string by reference in SetWatchName --- Source/Core/DolphinWX/Debugger/WatchView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/DolphinWX/Debugger/WatchView.cpp b/Source/Core/DolphinWX/Debugger/WatchView.cpp index d5d6913a66..13baf3660a 100644 --- a/Source/Core/DolphinWX/Debugger/WatchView.cpp +++ b/Source/Core/DolphinWX/Debugger/WatchView.cpp @@ -56,7 +56,7 @@ static void UpdateWatchAddr(int count, u32 value) PowerPC::watches.Update(count - 1, value); } -static void SetWatchName(int count, const std::string value) +static void SetWatchName(int count, const std::string& value) { if ((count - 1) < (int)PowerPC::watches.GetWatches().size()) {