Skip to content

Commit c1a2fb5

Browse files
committed
refs #36, fix for warnings on xcode 11.2 due to unhelpful use of references
1 parent 7301cd1 commit c1a2fb5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/ghc/filesystem.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2511,7 +2511,7 @@ GHC_INLINE path path::parent_path() const
25112511
}
25122512
else {
25132513
path pp;
2514-
for (const string_type& s : input_iterator_range<iterator>(begin(), --end())) {
2514+
for (string_type s : input_iterator_range<iterator>(begin(), --end())) {
25152515
if (s == "/") {
25162516
// don't use append to join a path-
25172517
pp += s;
@@ -2622,7 +2622,7 @@ GHC_INLINE path path::lexically_normal() const
26222622
{
26232623
path dest;
26242624
bool lastDotDot = false;
2625-
for (const string_type& s : *this) {
2625+
for (string_type s : *this) {
26262626
if (s == ".") {
26272627
dest /= "";
26282628
continue;
@@ -3379,7 +3379,7 @@ GHC_INLINE bool create_directories(const path& p, std::error_code& ec) noexcept
33793379
{
33803380
path current;
33813381
ec.clear();
3382-
for (const path::string_type& part : p) {
3382+
for (path::string_type part : p) {
33833383
current /= part;
33843384
if (current != p.root_name() && current != p.root_path()) {
33853385
std::error_code tec;

0 commit comments

Comments
 (0)