Merge "Fix bugprone-use-after-move warnings"
This commit is contained in:
@@ -70,8 +70,11 @@ std::unique_ptr<const ApkAssets> ApkAssets::LoadOverlay(const std::string& idmap
|
|||||||
LOG(ERROR) << "failed to load IDMAP " << idmap_path;
|
LOG(ERROR) << "failed to load IDMAP " << idmap_path;
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
return LoadImpl({} /*fd*/, loaded_idmap->OverlayApkPath(), std::move(idmap_asset),
|
auto apkPath = loaded_idmap->OverlayApkPath();
|
||||||
std::move(loaded_idmap), system, false /*load_as_shared_library*/);
|
return LoadImpl({} /*fd*/, apkPath,
|
||||||
|
std::move(idmap_asset),
|
||||||
|
std::move(loaded_idmap),
|
||||||
|
system, false /*load_as_shared_library*/);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::unique_ptr<const ApkAssets> ApkAssets::LoadFromFd(unique_fd fd,
|
std::unique_ptr<const ApkAssets> ApkAssets::LoadFromFd(unique_fd fd,
|
||||||
|
|||||||
Reference in New Issue
Block a user