From 048b90ad85414746850caac9b5a0b3bdf305a813 Mon Sep 17 00:00:00 2001 From: "Albert S." Date: Thu, 23 May 2024 18:14:21 +0200 Subject: [PATCH] shared: document*.cpp: Fix type mismatch, causing problems in qt6 --- shared/documentoutlineentry.cpp | 2 +- shared/documentprocessresult.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/shared/documentoutlineentry.cpp b/shared/documentoutlineentry.cpp index 224037c..c226deb 100644 --- a/shared/documentoutlineentry.cpp +++ b/shared/documentoutlineentry.cpp @@ -19,7 +19,7 @@ QDataStream &operator>>(QDataStream &in, DocumentOutlineEntry &pd) { in >> pd.text >> pd.type >> pd.destinationPage; - int numChildren; + qsizetype numChildren; in >> numChildren; for(int i = 0; i < numChildren; i++) { diff --git a/shared/documentprocessresult.cpp b/shared/documentprocessresult.cpp index 07e4bf6..fdb454e 100644 --- a/shared/documentprocessresult.cpp +++ b/shared/documentprocessresult.cpp @@ -1,5 +1,5 @@ #include "documentprocessresult.h" - +#include QDataStream &operator<<(QDataStream &out, const DocumentProcessResult &pd) { out << pd.pages.size(); @@ -17,7 +17,7 @@ QDataStream &operator<<(QDataStream &out, const DocumentProcessResult &pd) QDataStream &operator>>(QDataStream &in, DocumentProcessResult &pd) { - int numPages, numOutlines; + qsizetype numPages, numOutlines; in >> numPages; in >> numOutlines;