summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2017-03-22 23:45:41 +0100
committerAlbert Astals Cid <aacid@kde.org>2017-03-22 23:45:41 +0100
commit0dbec24428d96ae78be8ca06b230d68cde445614 (patch)
treedc5be95d4f94998c174886f0e244b919ec7af18e
parent7ba4eb3ac3f23236e3df1ef992160d702dc5e4e9 (diff)
qt5: Compile with -DQT_NO_CAST_FROM_BYTEARRAY
Bug #100311
-rw-r--r--qt5/src/poppler-private.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt5/src/poppler-private.h b/qt5/src/poppler-private.h
index ac384a41..fed4f260 100644
--- a/qt5/src/poppler-private.h
+++ b/qt5/src/poppler-private.h
@@ -92,7 +92,7 @@ namespace Poppler {
#ifdef _WIN32
doc = new PDFDoc((wchar_t *)filePath.utf16(), filePath.length(), ownerPassword, userPassword);
#else
- GooString *fileName = new GooString(QFile::encodeName(filePath));
+ GooString *fileName = new GooString(QFile::encodeName(filePath).constData());
doc = new PDFDoc(fileName, ownerPassword, userPassword);
#endif