ResultVal: Remove MoveFrom()
Replace it with std::move(result_val).Unwrap(), or Foo().Unwrap() in case you already have an rvalue.
This commit is contained in:
parent
4cb47b0278
commit
723dc644fa
24 changed files with 53 additions and 57 deletions
|
@ -152,7 +152,7 @@ void Init() {
|
|||
auto gamecoin_result =
|
||||
Service::FS::OpenFileFromArchive(*archive_result, gamecoin_path, open_mode);
|
||||
if (gamecoin_result.Succeeded()) {
|
||||
auto gamecoin = gamecoin_result.MoveFrom();
|
||||
auto gamecoin = std::move(gamecoin_result).Unwrap();
|
||||
gamecoin->backend->Write(0, sizeof(GameCoin), true,
|
||||
reinterpret_cast<const u8*>(&default_game_coin));
|
||||
gamecoin->backend->Close();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue