diff options
author | Lioncash <mathew1800@gmail.com> | 2019-05-24 21:01:46 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-05-24 21:27:12 -0400 |
commit | 16bf7919396cff4952e191368fa0907897b81348 (patch) | |
tree | a7f6eed75194fc8c8da6ec6d9095f72b4a720568 /src/yuzu/applets/software_keyboard.cpp | |
parent | b3d7180164157c64b48ed5ae549d1d02ef92e092 (diff) |
yuzu/applets/software_keyboard: std::move argument in MainWindowFinishedText()
Given the std::optional can contain an object type that heap allocates,
we can use std::move to avoid an unnecessary copy/allocation from
occurring.
Diffstat (limited to 'src/yuzu/applets/software_keyboard.cpp')
-rw-r--r-- | src/yuzu/applets/software_keyboard.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuzu/applets/software_keyboard.cpp b/src/yuzu/applets/software_keyboard.cpp index 7c95d730b..5223ec977 100644 --- a/src/yuzu/applets/software_keyboard.cpp +++ b/src/yuzu/applets/software_keyboard.cpp @@ -149,7 +149,7 @@ void QtSoftwareKeyboard::SendTextCheckDialog(std::u16string error_message, void QtSoftwareKeyboard::MainWindowFinishedText(std::optional<std::u16string> text) { // Acquire the HLE mutex std::lock_guard lock{HLE::g_hle_lock}; - text_output(text); + text_output(std::move(text)); } void QtSoftwareKeyboard::MainWindowFinishedCheckDialog() { |