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

List:       kde-commits
Subject:    Re: kdelibs/kdecore
From:       Antonio Larrosa =?iso-8859-15?q?Jim=E9nez?= <larrosa () kde ! org>
Date:       2003-08-06 13:49:44
[Download RAW message or body]

El Miércoles, 6 de Agosto de 2003 15:34, Ian Reinhart Geiser escribió:
> 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?
>

I might be wrong, but I suppose it's because QString::null is static and 
this member is static too. Given that you can't know the order of 
initialization of two static variables, this may mean that you're maybe 
initializing changed_string with an uninitialized member.

Note that I'm just guessing here.

Greetings,

--
Antonio Larrosa Jimenez
KDE developer - larrosa@kde.org
http://developer.kde.org/~larrosa/
It's not logical to think that some things are unmovable -- MrSpock.

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

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