summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2019-05-24 21:01:46 -0400
committerGravatar Lioncash2019-05-24 21:27:12 -0400
commit16bf7919396cff4952e191368fa0907897b81348 (patch)
treea7f6eed75194fc8c8da6ec6d9095f72b4a720568 /src
parentyuzu/applets/software_keyboard: Resolve sign mismatch comparison (diff)
downloadyuzu-16bf7919396cff4952e191368fa0907897b81348.tar.gz
yuzu-16bf7919396cff4952e191368fa0907897b81348.tar.xz
yuzu-16bf7919396cff4952e191368fa0907897b81348.zip
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')
-rw-r--r--src/yuzu/applets/software_keyboard.cpp2
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,
149void QtSoftwareKeyboard::MainWindowFinishedText(std::optional<std::u16string> text) { 149void QtSoftwareKeyboard::MainWindowFinishedText(std::optional<std::u16string> text) {
150 // Acquire the HLE mutex 150 // Acquire the HLE mutex
151 std::lock_guard lock{HLE::g_hle_lock}; 151 std::lock_guard lock{HLE::g_hle_lock};
152 text_output(text); 152 text_output(std::move(text));
153} 153}
154 154
155void QtSoftwareKeyboard::MainWindowFinishedCheckDialog() { 155void QtSoftwareKeyboard::MainWindowFinishedCheckDialog() {