diff options
author | bunnei <bunneidev@gmail.com> | 2020-06-24 00:24:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-24 00:24:15 +0200 |
commit | 1d1489da80cf3dc87fa0898cf8a394dc802867dd (patch) | |
tree | 02180c9a1a6340603bbfb66902d74b1265b28edc /src | |
parent | Merge pull request #4135 from FearlessTobi/port-5324 (diff) | |
parent | software_keyboard: Eliminate trivial redundant copies (diff) | |
download | yuzu-1d1489da80cf3dc87fa0898cf8a394dc802867dd.tar yuzu-1d1489da80cf3dc87fa0898cf8a394dc802867dd.tar.gz yuzu-1d1489da80cf3dc87fa0898cf8a394dc802867dd.tar.bz2 yuzu-1d1489da80cf3dc87fa0898cf8a394dc802867dd.tar.lz yuzu-1d1489da80cf3dc87fa0898cf8a394dc802867dd.tar.xz yuzu-1d1489da80cf3dc87fa0898cf8a394dc802867dd.tar.zst yuzu-1d1489da80cf3dc87fa0898cf8a394dc802867dd.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/core/hle/service/am/applets/software_keyboard.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/am/applets/software_keyboard.cpp b/src/core/hle/service/am/applets/software_keyboard.cpp index 54e63c138..d14076b02 100644 --- a/src/core/hle/service/am/applets/software_keyboard.cpp +++ b/src/core/hle/service/am/applets/software_keyboard.cpp @@ -30,7 +30,7 @@ static Core::Frontend::SoftwareKeyboardParameters ConvertToFrontendParameters( config.sub_text.size()); params.guide_text = Common::UTF16StringFromFixedZeroTerminatedBuffer(config.guide_text.data(), config.guide_text.size()); - params.initial_text = initial_text; + params.initial_text = std::move(initial_text); params.max_length = config.length_limit == 0 ? DEFAULT_MAX_LENGTH : config.length_limit; params.password = static_cast<bool>(config.is_password); params.cursor_at_beginning = static_cast<bool>(config.initial_cursor_position); @@ -109,7 +109,7 @@ void SoftwareKeyboard::Execute() { const auto parameters = ConvertToFrontendParameters(config, initial_text); - frontend.RequestText([this](std::optional<std::u16string> text) { WriteText(text); }, + frontend.RequestText([this](std::optional<std::u16string> text) { WriteText(std::move(text)); }, parameters); } |