diff options
author | Nathan Woods <npwoods@mess.org> | 2017-07-30 11:04:05 -0400 |
---|---|---|
committer | Vas Crabb <cuavas@users.noreply.github.com> | 2017-07-31 08:32:09 +1000 |
commit | cc544e98c4e7e84c8c9fbe018ec0f75d86b1a911 (patch) | |
tree | 6a8825a10139afd7468dfef6cecf00d6cf9ba8f4 /src/tools | |
parent | 0f05dff72867a3e733a3f0945ed23e524eb3e16b (diff) |
Imgtool: Removed silly intermediate 'const char *' (nw)
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/imgtool/imgtool.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/tools/imgtool/imgtool.cpp b/src/tools/imgtool/imgtool.cpp index 2343f4c5bd7..b1b32e6c632 100644 --- a/src/tools/imgtool/imgtool.cpp +++ b/src/tools/imgtool/imgtool.cpp @@ -2212,9 +2212,8 @@ imgtool::directory::directory(imgtool::partition &partition) // enumerating files on a partition //------------------------------------------------- -imgtoolerr_t imgtool::directory::open(imgtool::partition &partition, const std::string &path_string, imgtool::directory::ptr &outenum) +imgtoolerr_t imgtool::directory::open(imgtool::partition &partition, const std::string &path, imgtool::directory::ptr &outenum) { - const char *path = path_string.c_str(); imgtoolerr_t err = imgtoolerr_t(IMGTOOLERR_SUCCESS); imgtool::directory::ptr enumeration; @@ -2224,7 +2223,7 @@ imgtoolerr_t imgtool::directory::open(imgtool::partition &partition, const std:: return imgtoolerr_t(IMGTOOLERR_UNIMPLEMENTED | IMGTOOLERR_SRC_FUNCTIONALITY); std::string cannonical_path; - err = partition.cannonicalize_path(PATH_MUSTBEDIR, path, cannonical_path); + err = partition.cannonicalize_path(PATH_MUSTBEDIR, path.c_str(), cannonical_path); if (err) return err; |