Skip to content

Commit

Permalink
Update imports from list to array
Browse files Browse the repository at this point in the history
  • Loading branch information
wargio committed Sep 6, 2023
1 parent 1e1c93d commit 133f67f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/Cutter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3107,16 +3107,16 @@ QList<ImportDescription> 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<ImportDescription> qList;
RzBinImport *import;
RzListIter *iter;
bool va = core->io->va || core->bin->is_debugger;
CutterRzListForeach (imports, iter, RzBinImport, import) {


for (auto import : CutterPVector<RzBinImport>(imports)) {
if (RZ_STR_ISEMPTY(import->name)) {
continue;
}
Expand Down

0 comments on commit 133f67f

Please sign in to comment.