diff options
| author | Lioncash <mai.iam2048@gmail.com> | 2023-06-08 12:01:56 -0400 |
|---|---|---|
| committer | Lioncash <mai.iam2048@gmail.com> | 2023-06-08 12:01:59 -0400 |
| commit | 2b0a9477d04579877d0225b94a3bcd618dea5918 (patch) | |
| tree | f87daf3e165f126189c9c25dbe8053048caf15fd /Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp | |
| parent | cfd25f1d7cff062a3bd7f5649c2abcc2a44f2a8d (diff) | |
MemoryViewWidget: Use QStringView with ConvertTextToBytes
Allows for avoiding string copies. While we're at it, we can also mark
ConvertTextToBytes as const.
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp b/Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp index 519dea6ebe..752c4680a0 100644 --- a/Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp @@ -609,7 +609,7 @@ AddressSpace::Type MemoryViewWidget::GetAddressSpace() const return m_address_space; } -std::vector<u8> MemoryViewWidget::ConvertTextToBytes(Type type, QString input_text) +std::vector<u8> MemoryViewWidget::ConvertTextToBytes(Type type, QStringView input_text) const { if (type == Type::Null) return {}; |
