mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-18 18:38:51 +00:00
Remove use of deprecated rz_analysis_var_all_list() (#3052)
This commit is contained in:
parent
e56a0b5581
commit
dda1ece261
@ -3966,8 +3966,7 @@ QList<XrefDescription> CutterCore::getXRefsForVariable(QString variableName, boo
|
|||||||
const auto typ =
|
const auto typ =
|
||||||
findWrites ? RZ_ANALYSIS_VAR_ACCESS_TYPE_WRITE : RZ_ANALYSIS_VAR_ACCESS_TYPE_READ;
|
findWrites ? RZ_ANALYSIS_VAR_ACCESS_TYPE_WRITE : RZ_ANALYSIS_VAR_ACCESS_TYPE_READ;
|
||||||
QList<XrefDescription> xrefList = QList<XrefDescription>();
|
QList<XrefDescription> xrefList = QList<XrefDescription>();
|
||||||
RzList *vars = rz_analysis_var_all_list(core->analysis, fcn);
|
for (const auto &v : CutterPVector<RzAnalysisVar>(&fcn->vars)) {
|
||||||
for (const auto &v : CutterRzList<RzAnalysisVar>(vars)) {
|
|
||||||
if (variableName != v->name) {
|
if (variableName != v->name) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user