[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: why not to use dptrs in non-libraries
From: "Aaron J. Seigo" <aseigo () kde ! org>
Date: 2009-05-11 7:54:23
Message-ID: 200905110154.26422.aseigo () kde ! org
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
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
["signature.asc" (application/pgp-signature)]
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic