Eddy Petrișor wrote: > The part I am referring to is visible here: > http://universalindentgui.svn.sourceforge.net/viewvc/universalindent/trunk/src/SettingsPaths.cpp?r1=893&r2=901&pathrev=901 > > and the relevant line I am referring to is: > > pathTemplate = QString(tempPath + "-XXXXXX").toAscii().data(); > > > The QT FAQ says about QString to char* conversion: > > Note that it is necessary to store the bytearray before you call > data() on it, a call like the following > const char *c_str2 = str2.toLatin1().data(); > will make the application crash as the QByteArray has not been stored > and hence no longer exists
Good catch, I can confirm this. Sebastian -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]