comparison libinterp/corefcn/load-path.cc @ 30866:2f2e875d93fa stable

don't use mutable keyword for load_path data members * load-path.h, load-path.cc (load_path::m_package_map, load_path::m_top_level_package, load_path::m_dir_info_list, load_path::m_init_dirs): Don't declare data members as mutable. (load_path::update, load_path::add, load_path::get_package): Don't declare as const functions.
author John W. Eaton <jwe@octave.org>
date Thu, 24 Mar 2022 01:27:02 -0400
parents 243b51ec9ff0
children 070d5b04a0ac
comparison
equal deleted inserted replaced
30864:df26decca96b 30866:2f2e875d93fa
452 452
453 return retval; 453 return retval;
454 } 454 }
455 455
456 void 456 void
457 load_path::update (void) const 457 load_path::update (void)
458 { 458 {
459 // I don't see a better way to do this because we need to 459 // I don't see a better way to do this because we need to
460 // preserve the correct directory ordering for new files that 460 // preserve the correct directory ordering for new files that
461 // have appeared. 461 // have appeared.
462 462
1284 return false; 1284 return false;
1285 } 1285 }
1286 1286
1287 void 1287 void
1288 load_path::add (const dir_info& di, bool at_end, 1288 load_path::add (const dir_info& di, bool at_end,
1289 const std::string& pname, bool updating) const 1289 const std::string& pname, bool updating)
1290 { 1290 {
1291 package_info& l = get_package (pname); 1291 package_info& l = get_package (pname);
1292 1292
1293 l.add (di, at_end, updating); 1293 l.add (di, at_end, updating);
1294 1294