mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
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.
This commit is contained in:
parent
b3d7180164
commit
16bf791939
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ void QtSoftwareKeyboard::SendTextCheckDialog(std::u16string error_message,
|
||||||
void QtSoftwareKeyboard::MainWindowFinishedText(std::optional<std::u16string> text) {
|
void QtSoftwareKeyboard::MainWindowFinishedText(std::optional<std::u16string> text) {
|
||||||
// Acquire the HLE mutex
|
// Acquire the HLE mutex
|
||||||
std::lock_guard lock{HLE::g_hle_lock};
|
std::lock_guard lock{HLE::g_hle_lock};
|
||||||
text_output(text);
|
text_output(std::move(text));
|
||||||
}
|
}
|
||||||
|
|
||||||
void QtSoftwareKeyboard::MainWindowFinishedCheckDialog() {
|
void QtSoftwareKeyboard::MainWindowFinishedCheckDialog() {
|
||||||
|
|
Loading…
Reference in a new issue