commit | e35e87f51453849f78a3be41a25e1257820eda5a | [log] [tgz] |
---|---|---|
author | Ryan Mitchell <rtmitchell@google.com> | Thu Mar 19 16:57:50 2020 -0700 |
committer | Ryan Mitchell <rtmitchell@google.com> | Thu Mar 19 16:57:50 2020 -0700 |
tree | a7acd8637e69362ec9402631e7d47098352c306a | |
parent | 5527ace031ddbfce9bb52e767552c830ff4277af [diff] [blame] |
Fix bugprone-use-after-move warnings Bug: 150783499 Test: WITH_TIDY=1 make Change-Id: I185cb21521676ddbc4f2b7f098611a2efc7275e6 (cherry picked from commit c658184d366ee08cedd9ec208ea327530b52bfad) Merged-In: I185cb21521676ddbc4f2b7f098611a2efc7275e6
diff --git a/libs/androidfw/ApkAssets.cpp b/libs/androidfw/ApkAssets.cpp index 18934fd..b2b0ec2 100644 --- a/libs/androidfw/ApkAssets.cpp +++ b/libs/androidfw/ApkAssets.cpp
@@ -77,7 +77,8 @@ return {}; } - return LoadImpl({} /*fd*/, loaded_idmap->OverlayApkPath(), + auto apkPath = loaded_idmap->OverlayApkPath(); + return LoadImpl({} /*fd*/, apkPath, std::move(idmap_asset), std::move(loaded_idmap), PROPERTY_OVERLAY | (system ? PROPERTY_SYSTEM : 0U));