aboutsummaryrefslogtreecommitdiff
path: root/paludis/package_id.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-09-25 14:12:53 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-09-25 14:12:53 +0000
commit8aca0f10d1934e4d0170df3eea4c6ab1428a7027 (patch)
tree7de5bf5b57ac07ef107e1e86f365334b8839707b /paludis/package_id.cc
parentfa16225ca76ef2bf07174aee6460264c63f2b104 (diff)
downloadpaludis-8aca0f10d1934e4d0170df3eea4c6ab1428a7027.tar.gz
paludis-8aca0f10d1934e4d0170df3eea4c6ab1428a7027.tar.xz
Rename const iterators to ConstIterator, mutable to Iterator. Fixes: ticket:365
Diffstat (limited to 'paludis/package_id.cc')
-rw-r--r--paludis/package_id.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/paludis/package_id.cc b/paludis/package_id.cc
index 0707b7fe9..301f5ab78 100644
--- a/paludis/package_id.cc
+++ b/paludis/package_id.cc
@@ -76,18 +76,18 @@ PackageID::add_metadata_key(const tr1::shared_ptr<const MetadataKey> & k) const
_imp->keys.push_back(k);
}
-PackageID::MetadataIterator
+PackageID::MetadataConstIterator
PackageID::begin_metadata() const
{
need_keys_added();
- return MetadataIterator(_imp->keys.begin());
+ return MetadataConstIterator(_imp->keys.begin());
}
-PackageID::MetadataIterator
+PackageID::MetadataConstIterator
PackageID::end_metadata() const
{
need_keys_added();
- return MetadataIterator(_imp->keys.end());
+ return MetadataConstIterator(_imp->keys.end());
}
void
@@ -96,18 +96,18 @@ PackageID::add_mask(const tr1::shared_ptr<const Mask> & k) const
_imp->masks.push_back(k);
}
-PackageID::MasksIterator
+PackageID::MasksConstIterator
PackageID::begin_masks() const
{
need_masks_added();
- return MasksIterator(_imp->masks.begin());
+ return MasksConstIterator(_imp->masks.begin());
}
-PackageID::MasksIterator
+PackageID::MasksConstIterator
PackageID::end_masks() const
{
need_masks_added();
- return MasksIterator(_imp->masks.end());
+ return MasksConstIterator(_imp->masks.end());
}
bool
@@ -122,7 +122,7 @@ PackageID::invalidate_masks() const
_imp->masks.clear();
}
-PackageID::MetadataIterator
+PackageID::MetadataConstIterator
PackageID::find_metadata(const std::string & s) const
{
using namespace tr1::placeholders;
@@ -187,7 +187,7 @@ PackageIDComparator::PackageIDComparator(const PackageDatabase * const db) :
PrivateImplementationPattern<PackageIDComparator>(new Implementation<PackageIDComparator>)
{
unsigned c(0);
- for (PackageDatabase::RepositoryIterator r(db->begin_repositories()),
+ for (PackageDatabase::RepositoryConstIterator r(db->begin_repositories()),
r_end(db->end_repositories()) ; r != r_end ; ++r)
_imp->m.insert(std::make_pair((*r)->name(), ++c));
}