aboutsummaryrefslogtreecommitdiff
path: root/paludis/args/man.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-12-12 19:29:09 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-12-13 00:50:37 +0000
commit3ff3aa41ac733cb8a0c0d7e532b3cdd56673ddd0 (patch)
tree1159c5580577715e4279de0c8a39fe38738ae325 /paludis/args/man.cc
parentc4b5049c5c9064c0f694440f91136695b6e7e193 (diff)
downloadpaludis-3ff3aa41ac733cb8a0c0d7e532b3cdd56673ddd0.tar.gz
paludis-3ff3aa41ac733cb8a0c0d7e532b3cdd56673ddd0.tar.xz
New, simpler visitor framework.
Convert everything except the tree things, to begin with.
Diffstat (limited to 'paludis/args/man.cc')
-rw-r--r--paludis/args/man.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/paludis/args/man.cc b/paludis/args/man.cc
index 4e2b3c2fe..7fb1d4bd2 100644
--- a/paludis/args/man.cc
+++ b/paludis/args/man.cc
@@ -19,7 +19,7 @@
#include "man.hh"
#include <paludis/util/visitor-impl.hh>
-#include <paludis/util/visitor_cast.hh>
+#include <paludis/util/simple_visitor_cast.hh>
#include <tr1/functional>
#include <ostream>
#include <sstream>
@@ -31,8 +31,7 @@ using std::endl;
namespace
{
- struct ExtraText :
- ConstVisitor<ArgsVisitorTypes>
+ struct ExtraText
{
DocWriter & _dw;
@@ -119,7 +118,8 @@ paludis::args::generate_doc(DocWriter & dw, const ArgsHandler * const h)
for (paludis::args::ArgsGroup::ConstIterator b((*a)->begin()), b_end((*a)->end()) ;
b != b_end ; ++b)
{
- if (visitor_cast<const paludis::args::AliasArg>(**b) && visitor_cast<const paludis::args::AliasArg>(**b)->hidden())
+ if (simple_visitor_cast<const paludis::args::AliasArg>(**b) &&
+ simple_visitor_cast<const paludis::args::AliasArg>(**b)->hidden())
continue;
dw.arg_group_item((*b)->short_name(), (*b)->long_name(),