[Aptitude-svn-commit] r3733 - in branches/aptitude-0.3/aptitude: .
src
Daniel Burrows
dburrows at costa.debian.org
Mon Aug 8 17:27:40 UTC 2005
Author: dburrows
Date: Mon Aug 8 17:27:37 2005
New Revision: 3733
Modified:
branches/aptitude-0.3/aptitude/ChangeLog
branches/aptitude-0.3/aptitude/src/main.cc
Log:
Use a _ref for the progress bar.
Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog (original)
+++ branches/aptitude-0.3/aptitude/ChangeLog Mon Aug 8 17:27:37 2005
@@ -1,5 +1,9 @@
2005-08-08 Daniel Burrows <dburrows at debian.org>
+ * src/main.cc:
+
+ Use a counting reference for the initial progress bar.
+
* README.SMART-POINTERS:
Add some documentation on the use of smart pointers in aptitude.
Modified: branches/aptitude-0.3/aptitude/src/main.cc
==============================================================================
--- branches/aptitude-0.3/aptitude/src/main.cc (original)
+++ branches/aptitude-0.3/aptitude/src/main.cc Mon Aug 8 17:27:37 2005
@@ -460,8 +460,8 @@
try
{
- vs_progress *p=gen_progress_bar();
- apt_init(p, true, status_fname);
+ vs_progress_ref p=gen_progress_bar();
+ apt_init(p.unsafe_get_ref(), true, status_fname);
if(status_fname)
free(status_fname);
check_apt_errors();
@@ -474,8 +474,9 @@
(*apt_cache_file)->package_category_changed.connect(sigc::ptr_fun(vscreen_update));
}
- do_new_package_view(*p);
+ do_new_package_view(*p.unsafe_get_ref());
p->destroy();
+ p = NULL;
if(update_only)
do_update_lists();
More information about the Aptitude-svn-commit
mailing list