From 56c4eed7df84cef2c5620e7e11fbb1ed96c6ffb7 Mon Sep 17 00:00:00 2001 From: npwoods Date: Thu, 21 Jul 2022 08:18:15 -0400 Subject: [PATCH] util/zippath.cpp: Removed a now-unnecessary cast to std::string. (#10112) --- src/lib/util/zippath.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/util/zippath.cpp b/src/lib/util/zippath.cpp index 017ca8211c4..49cced27ff1 100644 --- a/src/lib/util/zippath.cpp +++ b/src/lib/util/zippath.cpp @@ -726,7 +726,7 @@ std::error_condition zippath_fopen(std::string_view filename, uint32_t openflags } if (subpath.empty()) - filerr = util::core_file::open(std::string(filename), openflags, file); + filerr = util::core_file::open(filename, openflags, file); else filerr = std::errc::no_such_file_or_directory;