From 6b76e4ad5752b9d06e5613e482f93059c3116b75 Mon Sep 17 00:00:00 2001 From: Nathan Woods Date: Sun, 30 Jul 2017 06:51:18 -0400 Subject: [PATCH] Imgtool: Vas Feedback: Changed another charconverter access (nw) --- src/tools/imgtool/imgtool.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tools/imgtool/imgtool.cpp b/src/tools/imgtool/imgtool.cpp index f53c9e29810..2343f4c5bd7 100644 --- a/src/tools/imgtool/imgtool.cpp +++ b/src/tools/imgtool/imgtool.cpp @@ -1114,10 +1114,10 @@ imgtoolerr_t imgtool::partition::cannonicalize_path(uint32_t flags, const char * // normalize the path into the native character set std::string converted_path; - imgtool::charconverter *charconverter = (imgtool::charconverter *) get_info_ptr(IMGTOOLINFO_PTR_CHARCONVERTER); - if (charconverter) + imgtool::charconverter * const converter = reinterpret_cast(get_info_ptr(IMGTOOLINFO_PTR_CHARCONVERTER)); + if (converter) { - converted_path = charconverter->from_utf8(path); + converted_path = converter->from_utf8(path); path = converted_path.c_str(); }