changeset 29249:70ae19d4e67b

maint: merge stable to default.
author Markus Mützel <markus.muetzel@gmx.de>
date Sat, 02 Jan 2021 19:30:51 +0100
parents d83ae0145030 (current diff) 37584021e209 (diff)
children 3ad713d82d18
files libinterp/corefcn/load-path.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/load-path.cc	Sat Jan 02 16:36:09 2021 +0100
+++ b/libinterp/corefcn/load-path.cc	Sat Jan 02 19:30:51 2021 +0100
@@ -2739,7 +2739,7 @@
       std::string arg = args(i).xstring_value ("rmpath: all arguments must be strings");
       std::list<std::string> dir_elts = octave::split_path (arg);
 
-      for (const auto dir : dir_elts)
+      for (const auto& dir : dir_elts)
         {
           //dir = regexprep (dir_elts{j}, '//+', "/");
           //dir = regexprep (dir, '/$', "");