summaryrefslogtreecommitdiff
path: root/src/cmdline/cmdline_search.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmdline/cmdline_search.cc')
-rw-r--r--src/cmdline/cmdline_search.cc17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/cmdline/cmdline_search.cc b/src/cmdline/cmdline_search.cc
index 8a7423ea..2a020418 100644
--- a/src/cmdline/cmdline_search.cc
+++ b/src/cmdline/cmdline_search.cc
@@ -79,7 +79,6 @@ using aptitude::util::progress_type_pulse;
using aptitude::util::throttle;
using aptitude::views::progress;
using boost::format;
-using boost::shared_ptr;
using cwidget::util::ref_ptr;
using cwidget::util::transcode;
using namespace aptitude::matching;
@@ -94,16 +93,16 @@ namespace
const unsigned int screen_width,
bool disable_columns,
bool debug,
- const shared_ptr<terminal_locale> &term_locale,
- const shared_ptr<terminal_metrics> &term_metrics,
- const shared_ptr<terminal_output> &term_output)
+ const boost::shared_ptr<terminal_locale> &term_locale,
+ const boost::shared_ptr<terminal_metrics> &term_metrics,
+ const boost::shared_ptr<terminal_output> &term_output)
{
typedef std::vector<std::pair<pkgCache::PkgIterator, ref_ptr<structural_match> > >
results_list;
- const shared_ptr<progress> search_progress_display =
+ const boost::shared_ptr<progress> search_progress_display =
create_progress_display(term_locale, term_metrics, term_output);
- const shared_ptr<throttle> search_progress_throttle =
+ const boost::shared_ptr<throttle> search_progress_throttle =
create_throttle();
results_list output;
@@ -111,7 +110,7 @@ namespace
for(std::vector<ref_ptr<pattern> >::const_iterator pIt = patterns.begin();
pIt != patterns.end(); ++pIt)
{
- const shared_ptr<progress> search_progress =
+ const boost::shared_ptr<progress> search_progress =
create_search_progress(serialize_pattern(*pIt),
search_progress_display,
search_progress_throttle);
@@ -167,7 +166,7 @@ int cmdline_search(int argc, char *argv[], const char *status_fname,
string display_format, string width, string sort,
bool disable_columns, bool debug)
{
- shared_ptr<terminal_io> term = create_terminal();
+ boost::shared_ptr<terminal_io> term = create_terminal();
int real_width=-1;
@@ -217,7 +216,7 @@ int cmdline_search(int argc, char *argv[], const char *status_fname,
return -1;
}
- shared_ptr<OpProgress> progress =
+ boost::shared_ptr<OpProgress> progress =
make_text_progress(true, term, term, term);
apt_init(progress.get(), true, status_fname);