mirror of
https://github.com/KingDuckZ/dindexer.git
synced 2025-07-02 14:04:22 +00:00
Fix the new hash_dir().
This fixes a bug that I never noticed in the old code. This also breaks the progress indicator in Release.
This commit is contained in:
parent
5fbad40fda
commit
af80771c2e
2 changed files with 22 additions and 13 deletions
|
@ -32,7 +32,6 @@ namespace mchlib {
|
|||
|
||||
class PathName;
|
||||
template <bool Const> class SetListingView;
|
||||
template <bool Const> const PathName& get_pathname ( const implem::DirIterator<Const>& parIter );
|
||||
|
||||
template <bool Const>
|
||||
implem::DirIterator<Const> first_file ( const SetListingView<Const>& parList );
|
||||
|
@ -45,7 +44,6 @@ namespace mchlib {
|
|||
friend class mchlib::SetListingView<Const>;
|
||||
friend class boost::iterator_core_access;
|
||||
template <bool> friend class DirIterator;
|
||||
template <bool B> friend const PathName& mchlib::get_pathname ( const DirIterator<B>& parIter );
|
||||
typedef boost::iterator_facade<DirIterator<Const>, FileRecordData, boost::random_access_traversal_tag> base_class;
|
||||
typedef typename base_class::difference_type difference_type;
|
||||
typedef typename base_class::reference reference;
|
||||
|
@ -129,11 +127,6 @@ namespace mchlib {
|
|||
ListType m_list;
|
||||
};
|
||||
|
||||
template <bool Const>
|
||||
inline const PathName& get_pathname (const implem::DirIterator<Const>& parIter) {
|
||||
return *parIter.m_base_path;
|
||||
}
|
||||
|
||||
template <bool Const>
|
||||
inline implem::DirIterator<Const> first_file (const SetListingView<Const>& parList) {
|
||||
auto end = parList.end();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue