From a5e54490f40e714a224f21911e3c6a703f6ecefe Mon Sep 17 00:00:00 2001 From: wanchengzhen Date: Mon, 14 Feb 2022 15:12:44 +0800 Subject: [PATCH] Fix codex Signed-off-by: wanchengzhen --- tools/zip/include/file_path.h | 8 +------- tools/zip/src/file_path.cpp | 8 +------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/tools/zip/include/file_path.h b/tools/zip/include/file_path.h index bc876999aba..75008e38a5d 100755 --- a/tools/zip/include/file_path.h +++ b/tools/zip/include/file_path.h @@ -61,13 +61,7 @@ public: FilePath Append(const std::string &component); FilePath Append(FilePath &component); // If IsParent(child) holds, appends to path (if non-NULL) the - // relative path to child and returns true. For example, if parent - // holds "/Users/johndoe/Library/Application Support", child holds - // "/Users/johndoe/Library/Application Support/Google/Chrome/Default", - // and *path holds "/Users/johndoe/Library/Caches", then after - // parent.AppendRelativePath(child, path) is called *path will hold - // "/Users/johndoe/Library/Caches/Google/Chrome/Default". Otherwise, - // returns false. + // relative path to child and returns true. bool AppendRelativePath(const FilePath &child, FilePath *path); bool ReferencesParent(); diff --git a/tools/zip/src/file_path.cpp b/tools/zip/src/file_path.cpp index edcaeb1e24d..6bb0deb3462 100755 --- a/tools/zip/src/file_path.cpp +++ b/tools/zip/src/file_path.cpp @@ -295,13 +295,7 @@ FilePath FilePath::Append(FilePath &component) } // If IsParent(child) holds, appends to path (if non-NULL) the -// relative path to child and returns true. For example, if parent -// holds "/Users/johndoe/Library/Application Support", child holds -// "/Users/johndoe/Library/Application Support/Google/Chrome/Default", and -// *path holds "/Users/johndoe/Library/Caches", then after -// parent.AppendRelativePath(child, path) is called *path will hold -// "/Users/johndoe/Library/Caches/Google/Chrome/Default". Otherwise, -// returns false. +// relative path to child and returns true. bool FilePath::AppendRelativePath(const FilePath &child, FilePath *path) { FilePath childPath = child; -- Gitee