[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    Re: kdelibs/kdecore
From:       Stephan Kulow <coolo () kde ! org>
Date:       2003-08-06 13:43:59
[Download RAW message or body]

On Wednesday 06 August 2003 15:34, Ian Reinhart Geiser wrote:
> On Wednesday 06 August 2003 07:50 am, Stephan Kulow wrote:
> > CVS commit by coolo:
> >
> > don't use QString::null, possibly uninitialized (as seen crashes on
> > kde-devel)
> [...]
> > -QString KAcceleratorManagerPrivate::changed_string = QString::null;
> > +QString KAcceleratorManagerPrivate::changed_string;
> 
> Can someone please explain this to me?  I have seen this in a few places too.
> Is this a Qt bug?
Not exactly. If it makes a difference, it's a bug in the dynamic linker as it
should create static objects of libqt before those in libkdecore. But if it doesn't,
then the assignment operator relies on an already initialized QString::null
while the default constructor relies on nothing.

Greetings, Stephan


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic