aboutsummaryrefslogtreecommitdiff
path: root/doc/api/cplusplus/examples
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-08-12 20:02:54 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-08-12 20:02:54 +0100
commitaacbe32dcf604490ce9211d40c0d11a6e78a4cdf (patch)
treede01cedfc7e66777ea650915f4cdfe7e99771a26 /doc/api/cplusplus/examples
parent0f3eb4b7da157630049ad93334338c4ba796304c (diff)
downloadpaludis-aacbe32dcf604490ce9211d40c0d11a6e78a4cdf.tar.gz
paludis-aacbe32dcf604490ce9211d40c0d11a6e78a4cdf.tar.xz
DepTagCategoryMaker -> DepTagCategoryFactory
Diffstat (limited to 'doc/api/cplusplus/examples')
-rw-r--r--doc/api/cplusplus/examples/example_dep_tag.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/doc/api/cplusplus/examples/example_dep_tag.cc b/doc/api/cplusplus/examples/example_dep_tag.cc
index 3d351c008..b44c3245d 100644
--- a/doc/api/cplusplus/examples/example_dep_tag.cc
+++ b/doc/api/cplusplus/examples/example_dep_tag.cc
@@ -150,11 +150,8 @@ int main(int argc, char * argv[])
{
cout << " " << *s << ":" << endl;
- /* Fetch the category. DepTagCategoryMaker::find_maker returns a
- * function that creates the category, rather than directly
- * returning the category. */
- std::tr1::shared_ptr<const DepTagCategory> category(
- DepTagCategoryMaker::get_instance()->find_maker(*s)());
+ /* Fetch the category. */
+ std::tr1::shared_ptr<const DepTagCategory> category(DepTagCategoryFactory::get_instance()->create(*s));
cout << left << setw(20) << " Visible:" << " " << boolalpha << category->visible() << endl;
cout << left << setw(20) << " ID:" << " " << category->id() << endl;