From 72bc0bf818525ac6a38cd1cd3109495bac70c6b5 Mon Sep 17 00:00:00 2001 From: rh101 Date: Sun, 25 Apr 2021 02:43:03 +1000 Subject: [PATCH] Removed redundant code --- cocos/base/ZipUtils.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cocos/base/ZipUtils.cpp b/cocos/base/ZipUtils.cpp index 86da37c365..9521855eb1 100644 --- a/cocos/base/ZipUtils.cpp +++ b/cocos/base/ZipUtils.cpp @@ -554,9 +554,7 @@ voidpf ZipFile_open_file_func(voidpf opaque, const char* filename, int mode) else return nullptr; - const std::string fsFilename = (char*)filename; - - return FileUtils::getInstance()->openFileStream(fsFilename, fsMode); + return FileUtils::getInstance()->openFileStream(filename, fsMode); } voidpf ZipFile_opendisk_file_func(voidpf opaque, voidpf stream, uint32_t number_disk, int mode)