util/zippath.cpp: Removed a now-unnecessary cast to std::string. (#10112)

This commit is contained in:
npwoods 2022-07-21 08:18:15 -04:00 committed by GitHub
parent 4875de8fbe
commit 56c4eed7df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;