[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: Re: KDE/kdelibs/solid/solid
From: André_Wöbbeking <Woebbeking () kde ! org>
Date: 2008-11-02 19:35:40
Message-ID: 200811022035.40464.Woebbeking () kde ! org
[Download RAW message or body]
On Sunday 02 November 2008, Dario Freddi wrote:
> On Sunday 02 November 2008 19:38:25 you wrote:
> > This is also not needed (if it's a QPointer).
>
> AFAIK, QPointers need to be initialized.
This is QPointer's default ctor:
inline QPointer() : o(0) {}
So if you don't initialize it yourself it is set to 0.
> If you look at the last
> posted backtrace in the bug, it is clearly a problem caused by a wild
> pointer.
Not the QPointer is the problem but the object containing that QPointer
was already deleted.
> I already faced some similar problems, where uninitialized QPointers
> could go wild if not initialized, and I think that line could
> actually solve that bug.
Not really.
Cheers,
André
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic