Skip to content

Commit 390ccf6

Browse files
committed
Address comments
1 parent 07e9b47 commit 390ccf6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/core/gdb-server.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ void PCSX::GdbClient::processMonitorCommand(const std::string& cmd) {
765765
writeEscaped("Usage: sharedmem <type>");
766766
} else {
767767
if (words[1] == "wram") {
768-
writeEscaped(g_emulator->m_mem->m_wramShared.getSharedName().c_str());
768+
writeEscaped(g_emulator->m_mem->m_wramShared.getSharedName());
769769
} else {
770770
writeEscaped("Unknown type. Valid types: wram");
771771
}

src/support/sharedmem.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class SharedMem {
4949
uint8_t* getPtr() { return m_mem; }
5050
size_t getSize() { return m_size; }
5151

52-
std::string getSharedName() { return m_sharedName; }
52+
const std::string& getSharedName() { return m_sharedName; }
5353

5454
private:
5555
std::string getSharedName(const char* id, uint32_t pid);

0 commit comments

Comments
 (0)