summaryrefslogtreecommitdiff
path: root/Source/Core/Common/DebugInterface.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-07-08 17:28:07 -0400
committerLioncash <mathew1800@gmail.com>2019-07-08 17:41:06 -0400
commitbc8778203eefcfca0597abc286de3c36edfbe6e5 (patch)
treeb39d0bab1ad4f5decd2cb56e1ba61dc334792329 /Source/Core/Common/DebugInterface.h
parent0a7395bfba99719f71de5186a9916e66c1901f37 (diff)
Common/Watches: std::move strings where applicable
Allows calling code to move the std::string into the Watch instances, avoiding copies.
Diffstat (limited to 'Source/Core/Common/DebugInterface.h')
-rw-r--r--Source/Core/Common/DebugInterface.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/Common/DebugInterface.h b/Source/Core/Common/DebugInterface.h
index e73c44ee28..0368f55f1e 100644
--- a/Source/Core/Common/DebugInterface.h
+++ b/Source/Core/Common/DebugInterface.h
@@ -22,13 +22,13 @@ protected:
public:
// Watches
- virtual std::size_t SetWatch(u32 address, const std::string& name = "") = 0;
+ virtual std::size_t SetWatch(u32 address, std::string name = "") = 0;
virtual const Common::Debug::Watch& GetWatch(std::size_t index) const = 0;
virtual const std::vector<Common::Debug::Watch>& GetWatches() const = 0;
virtual void UnsetWatch(u32 address) = 0;
- virtual void UpdateWatch(std::size_t index, u32 address, const std::string& name) = 0;
+ virtual void UpdateWatch(std::size_t index, u32 address, std::string name) = 0;
virtual void UpdateWatchAddress(std::size_t index, u32 address) = 0;
- virtual void UpdateWatchName(std::size_t index, const std::string& name) = 0;
+ virtual void UpdateWatchName(std::size_t index, std::string name) = 0;
virtual void EnableWatch(std::size_t index) = 0;
virtual void DisableWatch(std::size_t index) = 0;
virtual bool HasEnabledWatch(u32 address) const = 0;