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

This commit is contained in:
Florian Märkl 2022-03-28 20:19:58 +02:00
parent 206fee601b
commit 72a3815c01

View File

@ -834,11 +834,9 @@ void CutterCore::setToData(RVA addr, int size, int repeat)
}
CORE_LOCK();
rz_meta_del(core->analysis, RZ_META_TYPE_DATA, addr, 1);
RVA address = addr;
auto name = QString(size).toStdString();
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);
}