summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/natkeyboard.cpp
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2022-08-02 08:21:53 -0400
committer AJR <ajrhacker@users.noreply.github.com>2022-08-02 08:21:59 -0400
commit9d0076ab91bfc3fd2514b9f0d612b4049b5bbaf7 (patch)
treea09afdd6439afe481d985d721754a0be9cbf9fe8 /src/emu/natkeyboard.cpp
parent786016ae25d7918bd4c3ccaa6340f2f84397d288 (diff)
Change debugger command handler parameter vector element type from std::string to std::string_view
Diffstat (limited to 'src/emu/natkeyboard.cpp')
-rw-r--r--src/emu/natkeyboard.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/natkeyboard.cpp b/src/emu/natkeyboard.cpp
index 5a36e6b8e13..cac2e2a717a 100644
--- a/src/emu/natkeyboard.cpp
+++ b/src/emu/natkeyboard.cpp
@@ -505,10 +505,10 @@ void natural_keyboard::post_utf8(const char *text, size_t length, const attotime
}
-void natural_keyboard::post_utf8(const std::string &text, const attotime &rate)
+void natural_keyboard::post_utf8(std::string_view text, const attotime &rate)
{
if (!text.empty())
- post_utf8(text.c_str(), text.size(), rate);
+ post_utf8(text.data(), text.size(), rate);
}
@@ -590,10 +590,10 @@ void natural_keyboard::post_coded(const char *text, size_t length, const attotim
}
-void natural_keyboard::post_coded(const std::string &text, const attotime &rate)
+void natural_keyboard::post_coded(std::string_view text, const attotime &rate)
{
if (!text.empty())
- post_coded(text.c_str(), text.size(), rate);
+ post_coded(text.data(), text.size(), rate);
}