This commit is contained in:
guoling
2021-09-22 22:51:40 +08:00
parent 917b4d9b4d
commit 91af2711d9
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -557,7 +557,7 @@ bool copyFileContent(const MMKVPath_t &srcPath, MMKVFileHandle_t dstFD) {
#endif
void walkInDir(const MMKVPath_t &dirPath, WalkType type, function<void(const MMKVPath_t&, WalkType)> walker) {
void walkInDir(const MMKVPath_t &dirPath, WalkType type, const function<void(const MMKVPath_t&, WalkType)> &walker) {
auto folderPathStr = dirPath.data();
DIR *dir = opendir(folderPathStr);
if (!dir) {