summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-01-19 18:47:17 +0100
committerCarl Hetherington <cth@carlh.net>2025-01-19 18:47:17 +0100
commit033efb9ebc5c5d15b850fda0c770fb429f4e827c (patch)
treebca7eda2317ad2eed261e4e72a2aeac3f926ab27
parent77753c08c5d86c898e7821029b1baa077e896ad7 (diff)
Rename search -> search_by_name.
-rw-r--r--src/lib/find_missing.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/find_missing.cc b/src/lib/find_missing.cc
index c023d7db4..73eb50460 100644
--- a/src/lib/find_missing.cc
+++ b/src/lib/find_missing.cc
@@ -35,7 +35,7 @@ typedef map<shared_ptr<const Content>, vector<boost::filesystem::path>> Replacem
static
void
-search (Replacements& replacement_paths, boost::filesystem::path directory, int depth = 0)
+search_by_name(Replacements& replacement_paths, boost::filesystem::path directory, int depth = 0)
{
boost::system::error_code ec;
for (auto candidate: dcp::filesystem::directory_iterator(directory, ec)) {
@@ -48,7 +48,7 @@ search (Replacements& replacement_paths, boost::filesystem::path directory, int
}
}
} else if (dcp::filesystem::is_directory(candidate.path()) && depth <= 2) {
- search (replacement_paths, candidate, depth + 1);
+ search_by_name(replacement_paths, candidate, depth + 1);
}
}
@@ -68,7 +68,7 @@ dcpomatic::find_missing (vector<shared_ptr<Content>> content_to_fix, boost::file
replacement_paths[content] = content->paths();
}
- search (replacement_paths, is_directory(clue) ? clue : clue.parent_path());
+ search_by_name(replacement_paths, is_directory(clue) ? clue : clue.parent_path());
for (auto content: content_to_fix) {
auto const& repl = replacement_paths[content];