aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave/cmd_search.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-23 21:14:33 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-23 21:15:08 +0100
commit1e88d3f531a7d9cac4cd08db1484a3a87679af3c (patch)
tree9c2852177fbfc30366d24947658bf52a5c9e6d0c /src/clients/cave/cmd_search.cc
parentc3802f0aec7d89a518cf74145aa73bf2ea688e35 (diff)
downloadpaludis-1e88d3f531a7d9cac4cd08db1484a3a87679af3c.tar.gz
paludis-1e88d3f531a7d9cac4cd08db1484a3a87679af3c.tar.xz
Avoid more explicit newage
Diffstat (limited to 'src/clients/cave/cmd_search.cc')
-rw-r--r--src/clients/cave/cmd_search.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/clients/cave/cmd_search.cc b/src/clients/cave/cmd_search.cc
index 6d6e08e9d..ee7323d36 100644
--- a/src/clients/cave/cmd_search.cc
+++ b/src/clients/cave/cmd_search.cc
@@ -270,20 +270,20 @@ SearchCommand::run(
if (cmdline.begin_parameters() == cmdline.end_parameters())
throw args::DoHelp("search requires at least one parameter");
- const std::shared_ptr<Sequence<std::string> > show_args(new Sequence<std::string>);
+ const std::shared_ptr<Sequence<std::string> > show_args(std::make_shared<Sequence<std::string>>());
{
DisplayCallback display_callback;
ScopedNotifierCallback display_callback_holder(env.get(),
NotifierCallbackFunction(std::cref(display_callback)));
- const std::shared_ptr<Set<std::string> > patterns(new Set<std::string>);
+ const std::shared_ptr<Set<std::string> > patterns(std::make_shared<Set<std::string>>());
std::copy(cmdline.begin_parameters(), cmdline.end_parameters(), patterns->inserter());
FindCandidatesCommand find_candidates_command;
MatchCommand match_command;
- std::shared_ptr<Set<QualifiedPackageName> > matches(new Set<QualifiedPackageName>);
+ std::shared_ptr<Set<QualifiedPackageName> > matches(std::make_shared<Set<QualifiedPackageName>>());
find_candidates_command.run_hosted(env, cmdline.search_options, cmdline.match_options,
patterns, std::bind(
&found_candidate, env, std::ref(match_command), std::cref(cmdline.match_options),