diff options
-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); |