diff options
| author | 2022-12-01 21:18:14 +0000 | |
|---|---|---|
| committer | 2022-12-01 21:18:14 +0000 | |
| commit | e723dcadb15b41a2e421bf3ba7cfc9ee4c7be12b (patch) | |
| tree | d3c072827c26b389cae5b14217a82aab32bdaa2c /libs/androidfw/AssetManager2.cpp | |
| parent | 49bb84e840a63cd4801811fc24c0d473635d1ba2 (diff) | |
| parent | a5bc9585b2bd09868fb6e0339dd5b8e288303b7e (diff) | |
Merge "[res] Refactor AssetManager + Providers"
Diffstat (limited to 'libs/androidfw/AssetManager2.cpp')
| -rw-r--r-- | libs/androidfw/AssetManager2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/androidfw/AssetManager2.cpp b/libs/androidfw/AssetManager2.cpp index cc7e8714c0ac..68f5e4a88c7e 100644 --- a/libs/androidfw/AssetManager2.cpp +++ b/libs/androidfw/AssetManager2.cpp @@ -1562,11 +1562,11 @@ base::expected<std::monostate, IOError> Theme::SetTo(const Theme& source) { std::unordered_map<ApkAssetsCookie, SourceToDestinationRuntimePackageMap> src_asset_cookie_id_map; // Determine which ApkAssets are loaded in both theme AssetManagers. - const auto src_assets = source.asset_manager_->GetApkAssets(); + const auto& src_assets = source.asset_manager_->GetApkAssets(); for (size_t i = 0; i < src_assets.size(); i++) { const ApkAssets* src_asset = src_assets[i]; - const auto dest_assets = asset_manager_->GetApkAssets(); + const auto& dest_assets = asset_manager_->GetApkAssets(); for (size_t j = 0; j < dest_assets.size(); j++) { const ApkAssets* dest_asset = dest_assets[j]; if (src_asset != dest_asset) { |