From d2125b6978697166b45d65b45b8dabc552fa3f21 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Wed, 9 Aug 2017 15:53:06 +0100 Subject: [PATCH] Rename 'normalize_path_from_root' --- src/path.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/path.cpp b/src/path.cpp index 34d8d97..1c49029 100644 --- a/src/path.cpp +++ b/src/path.cpp @@ -67,7 +67,7 @@ namespace quickbook // Not a general purpose normalization function, just // from paths from the root directory. It strips the excess // ".." parts from a path like: "x/../../y", leaving "y". - std::vector normalize_path_from_root(fs::path const& path) + std::vector remove_dots_from_path(fs::path const& path) { assert(!path.has_root_directory() && !path.has_root_name()); @@ -97,8 +97,8 @@ namespace quickbook // Remove '.', '..' and empty parts from the remaining path std::vector - base_parts = normalize_path_from_root(absolute_base.relative_path()), - path_parts = normalize_path_from_root(absolute_path.relative_path()); + base_parts = remove_dots_from_path(absolute_base.relative_path()), + path_parts = remove_dots_from_path(absolute_path.relative_path()); std::vector::iterator base_it = base_parts.begin(),