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; }