diff options
Diffstat (limited to 'src/emu/natkeyboard.cpp')
-rw-r--r-- | src/emu/natkeyboard.cpp | 8 |
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); } |