why not to use dptrs in non-libraries
Aaron J. Seigo
aseigo at kde.org
Mon May 11 09:54:23 CEST 2009
hi..
so, we all know we use dptrs in libraries to maintain binary compatibility.
but i'm seeing them used more and more in plugins such as plasmoids. this is
really, really annoying when trying to debug things because then we end up
with backtraces like this:
Application: Plasma Widget Viewer (plasmoidviewer), signal: Segmentation fault
[KCrash Handler]
#6 0x00000011 in ?? ()
#7 0xa98ab67b in Kickoff::RecentlyUsedModel::setNameDisplayOrder
(this=0x82f2b58, displayOrder=Kickoff::NameBeforeDescription)
at
/home/aseigo/kde4/KDE/kdebase/workspace/plasma/applets/kickoff/core/recentlyusedmodel.cpp:213
#8 0xa98f9b1b in Kickoff::Launcher::setShowAppsByName (this=0x82b1fc8,
showAppsByName=true) at
not good. there's no reason for dptrs except for in libraries that are keeping
binary compat. please don't use dptrs otherwise, if only for the sake of
debugging. thanks.
--
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43
KDE core developer sponsored by Qt Software
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20090511/827cb854/attachment.sig
More information about the Plasma-devel
mailing list