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;