From kde-devel Sun Jun 27 19:30:07 1999 From: Stephan Kulow Date: Sun, 27 Jun 1999 19:30:07 +0000 To: kde-devel Subject: Re: kdelibs/kdecore X-MARC-Message: https://marc.info/?l=kde-devel&m=93051186204702 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