Remove unnessecary str in setToData() (Fix #2901)

This commit is contained in:
Florian Märkl 2022-03-28 20:19:58 +02:00 committed by Anton Kochkov
parent b6288ecbf6
commit 0dc4e94647

View File

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