aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/eclass_mtimes.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-07-05 00:50:29 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-07-05 00:50:29 +0000
commit624bfdfc96b37df2316f6dd5241f763671259959 (patch)
tree4227b78311bce68aec20a89080a936e21c8013f9 /paludis/repositories/e/eclass_mtimes.cc
parente931fb60ebe5fec2effef02435aad25f9d054845 (diff)
downloadpaludis-624bfdfc96b37df2316f6dd5241f763671259959.tar.gz
paludis-624bfdfc96b37df2316f6dd5241f763671259959.tar.xz
r3770@snowflake: ciaranm | 2007-07-05 01:48:14 +0100
Collection -> Sequence, Set, Map. Fixes: ticket:241
Diffstat (limited to 'paludis/repositories/e/eclass_mtimes.cc')
-rw-r--r--paludis/repositories/e/eclass_mtimes.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/paludis/repositories/e/eclass_mtimes.cc b/paludis/repositories/e/eclass_mtimes.cc
index 041cdfe22..60a630c3f 100644
--- a/paludis/repositories/e/eclass_mtimes.cc
+++ b/paludis/repositories/e/eclass_mtimes.cc
@@ -20,6 +20,8 @@
#include "eclass_mtimes.hh"
#include <paludis/hashed_containers.hh>
#include <paludis/util/private_implementation_pattern-impl.hh>
+#include <paludis/util/sequence.hh>
+#include <paludis/util/fs_entry.hh>
#include <libwrapiter/libwrapiter_forward_iterator.hh>
#include <libwrapiter/libwrapiter_output_iterator.hh>
@@ -30,17 +32,17 @@ namespace paludis
template<>
struct Implementation<EclassMtimes>
{
- tr1::shared_ptr<const FSEntryCollection> eclass_dirs;
+ tr1::shared_ptr<const FSEntrySequence> eclass_dirs;
mutable MakeHashedMap<std::string, time_t>::Type eclass_mtimes;
- Implementation(tr1::shared_ptr<const FSEntryCollection> d) :
+ Implementation(tr1::shared_ptr<const FSEntrySequence> d) :
eclass_dirs(d)
{
}
};
}
-EclassMtimes::EclassMtimes(tr1::shared_ptr<const FSEntryCollection> d) :
+EclassMtimes::EclassMtimes(tr1::shared_ptr<const FSEntrySequence> d) :
PrivateImplementationPattern<EclassMtimes>(new Implementation<EclassMtimes>(d))
{
}
@@ -57,7 +59,7 @@ EclassMtimes::mtime(const std::string & e) const
return i->second;
time_t r(0);
- for (FSEntryCollection::Iterator d(_imp->eclass_dirs->begin()),
+ for (FSEntrySequence::Iterator d(_imp->eclass_dirs->begin()),
d_end(_imp->eclass_dirs->end()) ; d != d_end ; ++d)
{
FSEntry f(*d / (e + ".eclass"));