diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2019-10-16 18:45:26 +0200 |
---|---|---|
committer | Michal Klocek <michal.klocek@qt.io> | 2019-11-25 13:04:37 +0100 |
commit | 6f3417542e32081b9a1d7810dfd64acecbc99578 (patch) | |
tree | 154ffcfaff12ff0708e57c0177960fcd4603c433 | |
parent | 0e533e924df25ecc6c0f5e16f88bdae0513b8445 (diff) |
Deal with unsigned data type changes in QPdfBookmarkModel
Pdfium API has changed slightly.
Change-Id: I8f6a5b227f35fd819ac4632d1d816569978b47b0
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
-rw-r--r-- | src/pdf/qpdfbookmarkmodel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pdf/qpdfbookmarkmodel.cpp b/src/pdf/qpdfbookmarkmodel.cpp index becca9e8f..e648657ba 100644 --- a/src/pdf/qpdfbookmarkmodel.cpp +++ b/src/pdf/qpdfbookmarkmodel.cpp @@ -187,10 +187,10 @@ public: m_rootNode->appendChild(childBookmarkNode); } - const unsigned long titleLength = FPDFBookmark_GetTitle(bookmark, nullptr, 0); + const int titleLength = int(FPDFBookmark_GetTitle(bookmark, nullptr, 0)); QVector<ushort> titleBuffer(titleLength); - FPDFBookmark_GetTitle(bookmark, titleBuffer.data(), titleBuffer.length()); + FPDFBookmark_GetTitle(bookmark, titleBuffer.data(), quint32(titleBuffer.length())); const FPDF_DEST dest = FPDFBookmark_GetDest(document, bookmark); const int pageNumber = FPDFDest_GetDestPageIndex(document, dest); |