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

Daniel Burrows dburrows at costa.debian.org
Fri Sep 23 23:37:44 UTC 2005


Author: dburrows
Date: Fri Sep 23 23:37:41 2005
New Revision: 4206

Modified:
   branches/aptitude-0.3/aptitude/ChangeLog
   branches/aptitude-0.3/aptitude/src/vscreen/vscreen_widget.cc
   branches/aptitude-0.3/aptitude/src/vscreen/vscreen_widget.h
Log:
Make get_owner() return a ref_ptr, not a bare pointer.

Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog	(original)
+++ branches/aptitude-0.3/aptitude/ChangeLog	Fri Sep 23 23:37:41 2005
@@ -1,5 +1,9 @@
 2005-09-23  Daniel Burrows  <dburrows at debian.org>
 
+	* src/vscreen/vscreen_widget.cc, src/vscreen/vscreen_widget.h:
+
+	  Make get_owner() return a ref_ptr, not a bare pointer.
+
 	* src/vscreen/vs_container.h, src/vscreen/vs_menubar.cc, src/vscreen/vs_menubar.h, src/vscreen/vs_passthrough.cc, src/vscreen/vs_passthrough.h:
 
 	  Add a routine to fetch the 'active' widget of a container (where

Modified: branches/aptitude-0.3/aptitude/src/vscreen/vscreen_widget.cc
==============================================================================
--- branches/aptitude-0.3/aptitude/src/vscreen/vscreen_widget.cc	(original)
+++ branches/aptitude-0.3/aptitude/src/vscreen/vscreen_widget.cc	Fri Sep 23 23:37:41 2005
@@ -150,6 +150,11 @@
   destroyed();
 }
 
+ref_ptr<vs_container> vscreen_widget::get_owner()
+{
+  return owner;
+}
+
 void vscreen_widget::show()
 {
   vs_widget_ref tmpref(this);

Modified: branches/aptitude-0.3/aptitude/src/vscreen/vscreen_widget.h
==============================================================================
--- branches/aptitude-0.3/aptitude/src/vscreen/vscreen_widget.h	(original)
+++ branches/aptitude-0.3/aptitude/src/vscreen/vscreen_widget.h	Fri Sep 23 23:37:41 2005
@@ -297,7 +297,7 @@
    */
   virtual void destroy();
 
-  vs_container *get_owner() {return owner;}
+  ref_ptr<vs_container> get_owner();
 
   virtual bool get_cursorvisible()=0;
   virtual point get_cursorloc()=0;



More information about the Aptitude-svn-commit mailing list