From 72a3815c0137ed49b8e9cacb183ed56946c79e56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=A4rkl?= Date: Mon, 28 Mar 2022 20:19:58 +0200 Subject: [PATCH] Remove unnessecary str in setToData() (Fix #2901) --- src/core/Cutter.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/core/Cutter.cpp b/src/core/Cutter.cpp index 43edba36..85924471 100644 --- a/src/core/Cutter.cpp +++ b/src/core/Cutter.cpp @@ -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); }