Changeset 453
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Node.cc
r452 r453 46 46 Node::Node(const u_int level, const std::string& path, 47 47 const std::string& local_path) 48 : level_(level), path_(path), stats_(path), 48 : level_(level), path_(path), stats_(path), log_(NULL), 49 49 svninfo_(path) 50 50 { … … 62 62 lstat(path.c_str(),&nodestat); // C api from sys/stat.h 63 63 link_ = S_ISLNK(nodestat.st_mode); 64 } 65 66 67 Node::~Node(void) 68 { 69 if (log_) 70 delete log_; 64 71 } 65 72 … … 139 146 140 147 141 SVNlog Node::log(void) const 142 { 143 if (ignore()) 144 return SVNlog(); 145 return log_core(); 148 const SVNlog& Node::log(void) const 149 { 150 if (!log_) 151 if (ignore()) 152 log_ = new SVNlog; 153 else 154 log_ = new SVNlog(log_core()); 155 return *log_; 146 156 } 147 157 -
trunk/lib/Node.h
r452 r453 63 63 /// @brief Destructor 64 64 /// 65 virtual inline ~Node(void) {};65 virtual ~Node(void); 66 66 67 67 /// … … 115 115 @return log of this node in a recursive manner. 116 116 */ 117 SVNloglog(void) const;117 const SVNlog& log(void) const; 118 118 119 119 /** … … 218 218 bool binary_; 219 219 bool link_; 220 mutable SVNlog* log_; 220 221 bool svndigest_ignore_; 221 222 SVNinfo svninfo_;
Note: See TracChangeset
for help on using the changeset viewer.