mirror of
https://github.com/KingDuckZ/dindexer.git
synced 2025-08-20 15:40:50 +00:00
Better way to construct SetListingView
This commit is contained in:
parent
2a7b8437ed
commit
bed191c4fc
3 changed files with 32 additions and 27 deletions
|
@ -145,15 +145,19 @@ namespace mchlib {
|
|||
return const_iterator(m_list.end(), m_list.end(), std::unique_ptr<PathName>());
|
||||
}
|
||||
|
||||
SetListingView SetListing::make_view() const {
|
||||
return SetListingView(m_list.begin(), m_list.end());
|
||||
}
|
||||
|
||||
SetListingView::SetListingView (const const_iterator& parIter) :
|
||||
m_begin(parIter.m_current),
|
||||
m_end(parIter.m_end)
|
||||
{
|
||||
}
|
||||
|
||||
SetListingView::SetListingView (const SetListing& parListing) :
|
||||
m_begin(parListing.m_list.begin()),
|
||||
m_end(parListing.m_list.end())
|
||||
SetListingView::SetListingView (list_iterator parBeg, list_iterator parEnd) :
|
||||
m_begin(parBeg),
|
||||
m_end(parEnd)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue