Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c658184d authored by Chih-Hung Hsieh's avatar Chih-Hung Hsieh
Browse files

Fix bugprone-use-after-move warnings

Bug: 150783499
Test: WITH_TIDY=1 make
Change-Id: I185cb21521676ddbc4f2b7f098611a2efc7275e6
parent 72b2fcbc
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -77,7 +77,8 @@ std::unique_ptr<const ApkAssets> ApkAssets::LoadOverlay(const std::string& idmap
    return {};
    return {};
  }
  }


  return LoadImpl({} /*fd*/, loaded_idmap->OverlayApkPath(),
  auto apkPath = loaded_idmap->OverlayApkPath();
  return LoadImpl({} /*fd*/, apkPath,
                  std::move(idmap_asset),
                  std::move(idmap_asset),
                  std::move(loaded_idmap),
                  std::move(loaded_idmap),
                  PROPERTY_OVERLAY | (system ? PROPERTY_SYSTEM : 0U));
                  PROPERTY_OVERLAY | (system ? PROPERTY_SYSTEM : 0U));