Skip to content

Commit

Permalink
refs #36, fix for warnings on xcode 11.2 due to unhelpful use of refe…
Browse files Browse the repository at this point in the history
…rences
  • Loading branch information
gulrak committed Nov 7, 2019
1 parent 7301cd1 commit c1a2fb5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/ghc/filesystem.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2511,7 +2511,7 @@ GHC_INLINE path path::parent_path() const
}
else {
path pp;
for (const string_type& s : input_iterator_range<iterator>(begin(), --end())) {
for (string_type s : input_iterator_range<iterator>(begin(), --end())) {
if (s == "/") {
// don't use append to join a path-
pp += s;
Expand Down Expand Up @@ -2622,7 +2622,7 @@ GHC_INLINE path path::lexically_normal() const
{
path dest;
bool lastDotDot = false;
for (const string_type& s : *this) {
for (string_type s : *this) {
if (s == ".") {
dest /= "";
continue;
Expand Down Expand Up @@ -3379,7 +3379,7 @@ GHC_INLINE bool create_directories(const path& p, std::error_code& ec) noexcept
{
path current;
ec.clear();
for (const path::string_type& part : p) {
for (path::string_type part : p) {
current /= part;
if (current != p.root_name() && current != p.root_path()) {
std::error_code tec;
Expand Down

0 comments on commit c1a2fb5

Please sign in to comment.