[Aptitude-svn-commit] r3747 - in branches/aptitude-0.3/aptitude: . src

Daniel Burrows dburrows at costa.debian.org
Mon Aug 8 18:14:34 UTC 2005


Author: dburrows
Date: Mon Aug  8 18:14:32 2005
New Revision: 3747

Modified:
   branches/aptitude-0.3/aptitude/ChangeLog
   branches/aptitude-0.3/aptitude/src/pkg_info_screen.h
Log:
Update the pkg_info_screen signature

Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog	(original)
+++ branches/aptitude-0.3/aptitude/ChangeLog	Mon Aug  8 18:14:32 2005
@@ -1,5 +1,9 @@
 2005-08-08  Daniel Burrows  <dburrows at debian.org>
 
+	* src/pkg_info_screen.h:
+
+	  Update the pkg_info_screen signature for refcounting.
+
 	* src/pkg_tree.cc, src/pkg_tree.h:
 
 	  Update pkg_tree for refcounting.

Modified: branches/aptitude-0.3/aptitude/src/pkg_info_screen.h
==============================================================================
--- branches/aptitude-0.3/aptitude/src/pkg_info_screen.h	(original)
+++ branches/aptitude-0.3/aptitude/src/pkg_info_screen.h	Mon Aug  8 18:14:32 2005
@@ -1,6 +1,6 @@
 // pkg_info_screen.h     -*-c++-*-
 //
-//  Copyright 2000 Daniel Burrows
+//  Copyright 2000, 2005 Daniel Burrows
 //
 //  This program is free software; you can redistribute it and/or modify
 //  it under the terms of the GNU General Public License as published by
@@ -42,8 +42,16 @@
 protected:
   vs_treeitem *setup_new_root(const pkgCache::PkgIterator &pkg,
 			      const pkgCache::VerIterator &ver);
-public:
   pkg_info_screen(const pkgCache::PkgIterator &pkg, const pkgCache::VerIterator &ver);
+public:
+  static ref_ptr<pkg_info_screen>
+  create(const pkgCache::PkgIterator &pkg,
+	 const pkgCache::VerIterator &ver)
+  {
+    return new pkg_info_screen(pkg, ver);
+  }
 };
 
+typedef ref_ptr<pkg_info_screen> pkg_info_screen_ref;
+
 #endif



More information about the Aptitude-svn-commit mailing list