[Aptitude-svn-commit] r3749 - in branches/aptitude-0.3/aptitude: .
src/vscreen
Daniel Burrows
dburrows at costa.debian.org
Mon Aug 8 18:42:50 UTC 2005
Author: dburrows
Date: Mon Aug 8 18:42:48 2005
New Revision: 3749
Modified:
branches/aptitude-0.3/aptitude/ChangeLog
branches/aptitude-0.3/aptitude/src/vscreen/ref_ptr.h
Log:
Make the dynamic downcast take a target class, not a target class pointer, as its template argument.
Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog (original)
+++ branches/aptitude-0.3/aptitude/ChangeLog Mon Aug 8 18:42:48 2005
@@ -1,5 +1,14 @@
2005-08-08 Daniel Burrows <dburrows at debian.org>
+ * src/vscreen/ref_ptr.h:
+
+ Make the dynamic downcast take a target class, not a target
+ class pointer, as its template argument.
+
+ * src/pkg_view.cc, src/pkg_view.h:
+
+ Update the package view generation code for refcounting.
+
* src/pkg_ver_item.cc, src/pkg_ver_item.h:
Update pkg_ver_item for refcounting.
Modified: branches/aptitude-0.3/aptitude/src/vscreen/ref_ptr.h
==============================================================================
--- branches/aptitude-0.3/aptitude/src/vscreen/ref_ptr.h (original)
+++ branches/aptitude-0.3/aptitude/src/vscreen/ref_ptr.h Mon Aug 8 18:42:48 2005
@@ -130,7 +130,7 @@
template<class S>
ref_ptr<S> dyn_downcast() const
{
- return ref_ptr<S>(dynamic_cast<S>(ref));
+ return ref_ptr<S>(dynamic_cast<S*>(ref));
}
bool valid() const
More information about the Aptitude-svn-commit
mailing list