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

List:       kde-devel
Subject:    Re: kdelibs/kdecore
From:       Stephan Kulow <coolo () kde ! org>
Date:       1999-06-27 19:30:07
[Download RAW message or body]

CVS by welk wrote:
> 
> kdelibs/kdecore kstddirs.cpp,1.55,1.56
> Author: welk
> CVSROOT: /home/kde
> Sat Jun 26 16:20:18 MET DST 1999
> Update of /home/kde/kdelibs/kdecore
> In directory zeus:/tmp/cvs-serv26333
> 
> Modified Files:
>         kstddirs.cpp
> Log Message:
> added workaround for "(QString + QString).ascii()" (Why does it not work ?)

I can tell you why (stupid me added it in first place).
(QString + QString) creates a temporal object and ascii() returns an
internal
reference to a member of this, so the point returned will only be valid
as long
as the object lives (til the next line). This is the source for many
upcoming
problems within KDE as many applications use .data() and rely on it to
live
forever ;(

Greetings, Stephan

-- 
KDEDIR is dead, long lives KDEDIRS - the winner takes it all

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

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