Mercurial > hg > forks > UniversalIndentGUI
diff src/SettingsPaths.cpp @ 798:4950731d52c1
Port to Qt5. Seems to work.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 12 Apr 2017 11:59:44 +0300 |
parents | fa7aa6f543f1 |
children |
line wrap: on
line diff
--- a/src/SettingsPaths.cpp Tue Mar 17 11:09:14 2015 -0600 +++ b/src/SettingsPaths.cpp Wed Apr 12 11:59:44 2017 +0300 @@ -144,7 +144,7 @@ // to an important existing file which gets overwritten when UiGUI writes // into this normally temporary but linked file. char *pathTemplate = new char[_tempPath.length()+8]; - QByteArray pathTemplateQBA = QString(_tempPath + "-XXXXXX").toAscii(); + QByteArray pathTemplateQBA = QString(_tempPath + "-XXXXXX").toUtf8(); delete [] pathTemplate; pathTemplate = pathTemplateQBA.data(); pathTemplate = mkdtemp( pathTemplate );