From b7021f83f322f851c9c6b57e28e2a892fbc42c89 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Mon, 18 Jul 2016 08:19:24 +0200 Subject: [PATCH] Fix compile with Qt5.5 on OSX Broke with 05b5b6167324a034047fe5ccfc4741a30f3d1d44 Change-Id: I60c9c243ad858563e793663bb0ce2ffc960c7868 Reviewed-by: Alessandro Portale --- src/app/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/main.cpp b/src/app/main.cpp index 2f8eb8ae504..33117259434 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -298,7 +298,8 @@ static const char *SHARE_PATH = void loadFonts() { - const QDir dir(QCoreApplication::applicationDirPath() + SHARE_PATH + "/fonts/"); + const QDir dir(QCoreApplication::applicationDirPath() + QLatin1String(SHARE_PATH) + + QLatin1String("/fonts/")); foreach (const QFileInfo &fileInfo, dir.entryList(QStringList("*.ttf"), QDir::Files)) QFontDatabase::addApplicationFont(fileInfo.absoluteFilePath());