From ee71d707388e4ce2103a0f513bdb181b23d166bc Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 7 Oct 2016 09:56:02 -0400 Subject: DebugInterface: Make GetRawMemoryString return a std::string --- Source/Core/Common/DebugInterface.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Source/Core/Common/DebugInterface.h') diff --git a/Source/Core/Common/DebugInterface.h b/Source/Core/Common/DebugInterface.h index 3aa8faec8f..df9944ef23 100644 --- a/Source/Core/Common/DebugInterface.h +++ b/Source/Core/Common/DebugInterface.h @@ -13,10 +13,9 @@ protected: virtual ~DebugInterface() {} public: virtual std::string Disassemble(unsigned int /*address*/) { return "NODEBUGGER"; } - virtual void GetRawMemoryString(int /*memory*/, unsigned int /*address*/, char* dest, - int /*max_size*/) + virtual std::string GetRawMemoryString(int /*memory*/, unsigned int /*address*/) { - strcpy(dest, "NODEBUGGER"); + return "NODEBUGGER"; } virtual int GetInstructionSize(int /*instruction*/) { return 1; } virtual bool IsAlive() { return true; } -- cgit v1.2.3