# HG changeset patch # User John W. Eaton # Date 1282593457 14400 # Node ID 6105ed2db9d740cd05d993cb0d52baf81c94085d # Parent e48a45b9a265df11b406d42c432e310521ff97a6 load_path::dir_info::initialize: clear method_file_map before updating file list diff -r e48a45b9a265 -r 6105ed2db9d7 src/ChangeLog --- a/src/ChangeLog Mon Aug 23 11:06:29 2010 +0200 +++ b/src/ChangeLog Mon Aug 23 15:57:37 2010 -0400 @@ -1,3 +1,10 @@ +2010-08-23 John W. Eaton + + * load-path.cc (load_path::dir_info::initialize): Clear + method_file_map before updating file list. + * load-path.cc (load_path::load_path): Explicitly initialize + private_fcn_map. + 2010-08-17 Rik * mappers.cc (gamma,lgamma): Add %!tests for negative integer diff -r e48a45b9a265 -r 6105ed2db9d7 src/load-path.cc --- a/src/load-path.cc Mon Aug 23 11:06:29 2010 +0200 +++ b/src/load-path.cc Mon Aug 23 15:57:37 2010 -0400 @@ -117,6 +117,8 @@ if (fs) { + method_file_map.clear (); + dir_mtime = fs.mtime (); dir_time_last_checked = octave_time (); diff -r e48a45b9a265 -r 6105ed2db9d7 src/load-path.h --- a/src/load-path.h Mon Aug 23 11:06:29 2010 +0200 +++ b/src/load-path.h Mon Aug 23 15:57:37 2010 -0400 @@ -39,7 +39,7 @@ protected: load_path (void) - : dir_info_list (), fcn_map (), method_map () { } + : dir_info_list (), fcn_map (), private_fcn_map (), method_map () { } public: @@ -404,7 +404,7 @@ typedef method_map_type::const_iterator const_method_map_iterator; typedef method_map_type::iterator method_map_iterator; - + mutable dir_info_list_type dir_info_list; mutable fcn_map_type fcn_map;