Commit 231b4cb1 authored by Daniel Elstner's avatar Daniel Elstner
Browse files

:find_increment_file_count): There is no need for the reverse_iterator

* src/filetree.cc (FileTree::find_increment_file_count): There
is no need for the reverse_iterator abstraction here -- just use
plain iterators and decrement them.
parent 42393d3d
2004-06-01 Daniel Elstner <daniel.elstner@gmx.net>
* src/filetree.cc (FileTree::find_increment_file_count): There
is no need for the reverse_iterator abstraction here -- just use
plain iterators and decrement them.
2004-06-01 Daniel Elstner <daniel.elstner@gmx.net>
* src/filetree.cc (FileTree::prev_match_file): As it turns out
......
......@@ -507,12 +507,12 @@ void FileTree::find_increment_file_count(FindData& find_data, int file_count)
const FileTreeColumns& columns = FileTreeColumns::instance();
DirStack::reverse_iterator pdir = find_data.dirstack.rbegin();
const DirStack::reverse_iterator pend = find_data.dirstack.rend();
const DirStack::iterator pbegin = find_data.dirstack.begin();
DirStack::iterator pdir = find_data.dirstack.end();
for (; pdir != pend; ++pdir)
while (pdir != pbegin)
{
const FileInfoBasePtr base = (*pdir->second)[columns.fileinfo];
const FileInfoBasePtr base = (*(--pdir)->second)[columns.fileinfo];
shared_polymorphic_cast<DirInfo>(base)->file_count += file_count;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment