From 133f67f0fd00e926c18d5f8862ebdc55caad5572 Mon Sep 17 00:00:00 2001 From: wargio Date: Wed, 6 Sep 2023 22:55:29 +0800 Subject: [PATCH] Update imports from list to array --- src/core/Cutter.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/Cutter.cpp b/src/core/Cutter.cpp index c1ce9d212..fb687c8eb 100644 --- a/src/core/Cutter.cpp +++ b/src/core/Cutter.cpp @@ -3107,16 +3107,16 @@ QList CutterCore::getAllImports() if (!bf) { return {}; } - const RzList *imports = rz_bin_object_get_imports(bf->o); + const RzPVector *imports = rz_bin_object_get_imports(bf->o); if (!imports) { return {}; } QList qList; - RzBinImport *import; - RzListIter *iter; bool va = core->io->va || core->bin->is_debugger; - CutterRzListForeach (imports, iter, RzBinImport, import) { + + + for (auto import : CutterPVector(imports)) { if (RZ_STR_ISEMPTY(import->name)) { continue; }