Please remove all uses of KDevShared and KDevSharedPtr
rodda at kde.org
Fri Aug 25 06:54:16 UTC 2006
On Friday 25 August 2006 13:41, Matt Rogers wrote:
> I'd like to remove KDevShared as soon as possible since it's nothing more
> than a copy of the KDE 3 version of KSharedPtr. Please read about the new
> KDE 4 version of KSharedPtr and start switching anything that is using
> KDevSharedPtr to KSharedPtr. So far, this is only used in the project model
> stuff and in the parsers. Once the parsers are done, I'll be removing
I looked at this a while back. The problem is that the kde4 shared pointer
does have an important difference - it does not easily allow the pointer to
be returned; only dereferenced, compared, etc. Thus, converting much of the
code model stuff was very difficult, and to me not worth the effort.
However, there is a deeper point to be made here - these use of shared
pointers in the code model (and probably other places) are really a cop-out
to appropriate memory management. With the new binder that I'm about to
create for c++ (I had a few conceptual breakthroughs on my bike ride today
that I'm pretty excited about), they will not be required. So, if I can
succeed here, we can change other uses over to the kde4 version.
In addition, I propose porting all of the KDevItem* stuff over to
QStandardItemModel. We have an extra layer of complexity which isn't helping
us, and this model should take care of many details for us.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
More information about the KDevelop-devel