diff options
author | Ryan Mitchell <rtmitchell@google.com> | 2020-03-19 16:57:50 -0700 |
---|---|---|
committer | Ryan Mitchell <rtmitchell@google.com> | 2020-03-19 16:57:50 -0700 |
commit | e35e87f51453849f78a3be41a25e1257820eda5a (patch) | |
tree | a7acd8637e69362ec9402631e7d47098352c306a /libs/androidfw/ApkAssets.cpp | |
parent | 5527ace031ddbfce9bb52e767552c830ff4277af (diff) |
Fix bugprone-use-after-move warnings
Bug: 150783499
Test: WITH_TIDY=1 make
Change-Id: I185cb21521676ddbc4f2b7f098611a2efc7275e6
(cherry picked from commit c658184d366ee08cedd9ec208ea327530b52bfad)
Merged-In: I185cb21521676ddbc4f2b7f098611a2efc7275e6
Diffstat (limited to 'libs/androidfw/ApkAssets.cpp')
-rw-r--r-- | libs/androidfw/ApkAssets.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/androidfw/ApkAssets.cpp b/libs/androidfw/ApkAssets.cpp index 18934fd55bad..b2b0ec2a54f8 100644 --- a/libs/androidfw/ApkAssets.cpp +++ b/libs/androidfw/ApkAssets.cpp @@ -77,7 +77,8 @@ std::unique_ptr<const ApkAssets> ApkAssets::LoadOverlay(const std::string& idmap 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)); |