Changeset 1075
- Timestamp:
- Jun 7, 2010, 5:57:58 AM (13 years ago)
- Location:
- branches/0.7-stable
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/0.7-stable/bin/svndigest.cc
r847 r1075 152 152 if (option->verbose()) 153 153 std::cout << "Parsing directory tree" << std::endl; 154 StatsCollection stats(tree->parse(option->verbose(), option->ignore_cache())); 154 const StatsCollection& stats(tree->parse(option->verbose(), 155 option->ignore_cache())); 155 156 156 157 if (option->report()) { -
branches/0.7-stable/lib/StatsCollection.cc
r847 r1075 51 51 StatsCollection::~StatsCollection(void) 52 52 { 53 for (map:: const_iterator i(stats_.begin()); i!=stats_.end(); ++i) {53 for (map::iterator i(stats_.begin()); i!=stats_.end(); ++i) { 54 54 assert(i->second); 55 55 delete i->second; 56 i->second = NULL; 56 57 } 57 58 58 } 59 59 -
branches/0.7-stable/lib/StatsCollection.h
r847 r1075 86 86 87 87 private: 88 // copy not allowed 89 StatsCollection(const StatsCollection&); 90 StatsCollection& operator=(const StatsCollection&); 91 88 92 const std::string path_; 89 93 typedef std::map<std::string, Stats*> map;
Note: See TracChangeset
for help on using the changeset viewer.