mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-22 04:46:11 +00:00
Remove unnessecary str in setToData() (Fix #2901)
This commit is contained in:
parent
b6288ecbf6
commit
0dc4e94647
@ -834,11 +834,9 @@ void CutterCore::setToData(RVA addr, int size, int repeat)
|
|||||||
}
|
}
|
||||||
|
|
||||||
CORE_LOCK();
|
CORE_LOCK();
|
||||||
rz_meta_del(core->analysis, RZ_META_TYPE_DATA, addr, 1);
|
|
||||||
RVA address = addr;
|
RVA address = addr;
|
||||||
auto name = QString(size).toStdString();
|
|
||||||
for (int i = 0; i < repeat; ++i, address += size) {
|
for (int i = 0; i < repeat; ++i, address += size) {
|
||||||
rz_meta_set(core->analysis, RZ_META_TYPE_DATA, address, size, name.c_str());
|
rz_meta_set(core->analysis, RZ_META_TYPE_DATA, address, size, nullptr);
|
||||||
}
|
}
|
||||||
emit instructionChanged(addr);
|
emit instructionChanged(addr);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user