mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-12-24 10:23:01 -06:00
software_keyboard: Resolve a pessimizing move warning
A std::vector created in place like this is already an rvalue and doesn't need to be moved.
This commit is contained in:
parent
e050594706
commit
03d5a5d9de
1 changed files with 1 additions and 2 deletions
|
@ -122,8 +122,7 @@ void SoftwareKeyboard::ExecuteInteractive() {
|
||||||
|
|
||||||
switch (request) {
|
switch (request) {
|
||||||
case Request::Calc: {
|
case Request::Calc: {
|
||||||
broker.PushNormalDataFromApplet(
|
broker.PushNormalDataFromApplet(std::make_shared<IStorage>(std::vector<u8>{1}));
|
||||||
std::make_shared<IStorage>(std::move(std::vector<u8>{1})));
|
|
||||||
broker.SignalStateChanged();
|
broker.SignalStateChanged();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue