u_setDataDirectory expects const * char.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-11-29 08:15:29 +02:00
parent 002f86b1a8
commit 1d28dd5be9

View file

@ -355,7 +355,7 @@ void VAbstractApplication::SetICUData(int &argc, char **argv)
* to documentation we can either use ICU_DATA environment variable or the function u_setDataDirectory().
*/
const QString appDirPath = QFileInfo(ApplicationFilePath(argc, argv)).path();
u_setDataDirectory(QString(appDirPath + QStringLiteral("/../share/icu")).toUtf8());
u_setDataDirectory(QString(appDirPath + QStringLiteral("/../share/icu")).toUtf8().constData());
}
#endif // defined(Q_OS_LINUX)