diff options
Diffstat (limited to 'runtime/hidden_api_test.cc')
-rw-r--r-- | runtime/hidden_api_test.cc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/runtime/hidden_api_test.cc b/runtime/hidden_api_test.cc index a3d5db1f79..c2c40c5af3 100644 --- a/runtime/hidden_api_test.cc +++ b/runtime/hidden_api_test.cc @@ -63,12 +63,11 @@ static bool LoadDexFiles(const std::string& path, /* out */ std::vector<std::unique_ptr<const DexFile>>* dex_files, /* out */ ObjPtr<mirror::ClassLoader>* class_loader, /* out */ std::string* error_msg) REQUIRES_SHARED(Locks::mutator_lock_) { - if (!ArtDexFileLoader().Open(path.c_str(), - path, - /* verify= */ true, - /* verify_checksum= */ true, - error_msg, - dex_files)) { + ArtDexFileLoader dex_file_loader(path); + if (!dex_file_loader.Open(/* verify= */ true, + /* verify_checksum= */ true, + error_msg, + dex_files)) { return false; } |