Remove use of deprecated rz_analysis_var_all_list() (#3052)

This commit is contained in:
Florian Märkl 2022-11-04 15:17:23 +01:00 committed by GitHub
parent e56a0b5581
commit dda1ece261
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3966,8 +3966,7 @@ QList<XrefDescription> CutterCore::getXRefsForVariable(QString variableName, boo
const auto typ =
findWrites ? RZ_ANALYSIS_VAR_ACCESS_TYPE_WRITE : RZ_ANALYSIS_VAR_ACCESS_TYPE_READ;
QList<XrefDescription> xrefList = QList<XrefDescription>();
RzList *vars = rz_analysis_var_all_list(core->analysis, fcn);
for (const auto &v : CutterRzList<RzAnalysisVar>(vars)) {
for (const auto &v : CutterPVector<RzAnalysisVar>(&fcn->vars)) {
if (variableName != v->name) {
continue;
}