r18847 - gnucash/trunk/src/gnc - Cutecash: Remove QSharedPointer because manual delete is sufficient.
Christian Stimming
cstim at code.gnucash.org
Fri Mar 5 15:46:36 EST 2010
Author: cstim
Date: 2010-03-05 15:46:35 -0500 (Fri, 05 Mar 2010)
New Revision: 18847
Trac: http://svn.gnucash.org/trac/changeset/18847
Removed:
gnucash/trunk/src/gnc/ScopedPointer.hpp
Modified:
gnucash/trunk/src/gnc/mainwindow.cpp
gnucash/trunk/src/gnc/mainwindow.hpp
Log:
Cutecash: Remove QSharedPointer because manual delete is sufficient.
Also, the QSharedPointer cannot be used for bookkeeping of a C pointer
to any gnucash object because it refuses to work if it doesn't know the
actual struct definition, which in gnucash is always private. The
boost::shared_ptr would work without (by the custom deleter argument in the
constructor), but QSharedPointer doesn't (the custom deleter is accepted
only in addition to the known storage size, not alternatively), so it is
pointless here.
More information about the gnucash-patches
mailing list