mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
MemoryViewWidget: Use QStringView with ConvertTextToBytes
Allows for avoiding string copies. While we're at it, we can also mark ConvertTextToBytes as const.
This commit is contained in:
@ -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 {};
|
||||
|
Reference in New Issue
Block a user