summaryrefslogtreecommitdiffstatshomepage
path: root/src/tools
diff options
context:
space:
mode:
author Nathan Woods <npwoods@mess.org>2017-07-30 06:51:18 -0400
committer Vas Crabb <cuavas@users.noreply.github.com>2017-07-30 21:59:33 +1000
commit6b76e4ad5752b9d06e5613e482f93059c3116b75 (patch)
tree2fd9de6629aeb13cc883e492820633e7904be4f6 /src/tools
parentc04cc607020444609f49edb80912af75a627982b (diff)
Imgtool: Vas Feedback: Changed another charconverter access (nw)
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/imgtool/imgtool.cpp6
1 files 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<imgtool::charconverter * const>(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();
}