Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Directory.cc
r750 r757 109 109 110 110 111 SVNlog Directory::log_core(void) const 112 { 113 SVNlog log(path()); 111 void Directory::log_core(SVNlog& log) const 112 { 114 113 for (NodeConstIterator i(daughters_.begin()); i != daughters_.end(); ++i) 115 114 log += (*i)->log(); 116 return log;117 115 } 118 116 -
trunk/lib/Directory.h
r693 r757 6 6 /* 7 7 Copyright (C) 2005, 2006, 2007 Jari Häkkinen, Peter Johansson 8 Copyright (C) 2009 Peter Johansson 8 9 9 10 This file is part of svndigest, http://dev.thep.lu.se/svndigest … … 90 91 private: 91 92 /** 92 @returnunion of logs from daughter nodes.93 add union of logs from daughter nodes. 93 94 */ 94 SVNlog log_core(void) const;95 void log_core(SVNlog&) const; 95 96 96 97 /// -
trunk/lib/File.cc
r750 r757 174 174 175 175 176 SVNlog File::log_core(void) const 177 { 178 return SVNlog(path()); 176 void File::log_core(SVNlog&) const 177 { 179 178 } 180 179 -
trunk/lib/File.h
r750 r757 77 77 78 78 /** 79 @return log of this File.79 do nothing 80 80 */ 81 SVNlog log_core(void) const;81 void log_core(SVNlog&) const; 82 82 83 83 /// -
trunk/lib/Node.cc
r751 r757 154 154 if (ignore()) 155 155 log_ = new SVNlog; 156 else 157 log_ = new SVNlog(log_core()); 156 else { 157 log_ = new SVNlog(path()); 158 log_core(*log_); 159 } 158 160 } 159 161 return *log_; … … 205 207 if (verbose) 206 208 std::cout << "Printing output for " << path_ << std::endl; 207 SVNlog log(path_);209 const SVNlog& log = this->log(); 208 210 typedef std::map<std::string, Stats*>::const_iterator iter; 209 211 -
trunk/lib/Node.h
r693 r757 6 6 /* 7 7 Copyright (C) 2005, 2006, 2007 Jari Häkkinen, Peter Johansson 8 Copyright (C) 2009 Peter Johansson 8 9 9 10 This file is part of svndigest, http://dev.thep.lu.se/svndigest … … 199 200 protected: 200 201 201 virtual SVNlog log_core(void) const=0;202 203 202 /// 204 203 /// print path in html format (with anchors) to @a os … … 218 217 /// 219 218 Node(const Node&); 219 220 virtual void log_core(SVNlog&) const=0; 220 221 221 222 virtual void print_core(bool verbose=false) const=0;
Note: See TracChangeset
for help on using the changeset viewer.