Changeset 1021 for trunk/libtorrent/src/torrent/data/file.cc
- Timestamp:
- 12/23/07 03:05:00 (4 years ago)
- Files:
-
- 1 modified
-
trunk/libtorrent/src/torrent/data/file.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtorrent/src/torrent/data/file.cc
r1019 r1021 143 143 } 144 144 145 void 146 File::set_match_depth(File* left, File* right) { 147 uint32_t level = 0; 148 149 Path::const_iterator itrLeft = left->path()->begin(); 150 Path::const_iterator itrRight = right->path()->begin(); 151 152 while (itrLeft != left->path()->end() && itrRight != right->path()->end() && *itrLeft == *itrRight) { 153 itrLeft++; 154 itrRight++; 155 level++; 156 } 157 158 left->m_matchDepthNext = level; 159 right->m_matchDepthPrev = level; 160 } 161 145 162 bool 146 163 File::resize_file() {
