diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/textual.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/textual.cc b/src/textual.cc index a629048f..b4e51fbe 100644 --- a/src/textual.cc +++ b/src/textual.cc @@ -753,12 +753,12 @@ void instance_t::include_directive(char * line) if (exists(parent_path)) { filesystem::directory_iterator end; - // Sort parent_path since on some file systems it is unsorted. - std::vector<path> sorted_parent_path; - std::copy(filesystem::directory_iterator(parent_path), - filesystem::directory_iterator(), - std::back_inserter(sorted_parent_path)); - std::sort(sorted_parent_path.begin(), sorted_parent_path.end()); + // Sort parent_path since on some file systems it is unsorted. + std::vector<path> sorted_parent_path; + std::copy(filesystem::directory_iterator(parent_path), + filesystem::directory_iterator(), + std::back_inserter(sorted_parent_path)); + std::sort(sorted_parent_path.begin(), sorted_parent_path.end()); for (std::vector<path>::const_iterator iter(sorted_parent_path.begin()), it_end(sorted_parent_path.end()); iter != it_end; ++iter) { |