shared: document*.cpp: Fix type mismatch, causing problems in qt6
This commit is contained in:
parent
552f058370
commit
048b90ad85
@ -19,7 +19,7 @@ QDataStream &operator>>(QDataStream &in, DocumentOutlineEntry &pd)
|
|||||||
{
|
{
|
||||||
in >> pd.text >> pd.type >> pd.destinationPage;
|
in >> pd.text >> pd.type >> pd.destinationPage;
|
||||||
|
|
||||||
int numChildren;
|
qsizetype numChildren;
|
||||||
in >> numChildren;
|
in >> numChildren;
|
||||||
for(int i = 0; i < numChildren; i++)
|
for(int i = 0; i < numChildren; i++)
|
||||||
{
|
{
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#include "documentprocessresult.h"
|
#include "documentprocessresult.h"
|
||||||
|
#include <QDebug>
|
||||||
QDataStream &operator<<(QDataStream &out, const DocumentProcessResult &pd)
|
QDataStream &operator<<(QDataStream &out, const DocumentProcessResult &pd)
|
||||||
{
|
{
|
||||||
out << pd.pages.size();
|
out << pd.pages.size();
|
||||||
@ -17,7 +17,7 @@ QDataStream &operator<<(QDataStream &out, const DocumentProcessResult &pd)
|
|||||||
|
|
||||||
QDataStream &operator>>(QDataStream &in, DocumentProcessResult &pd)
|
QDataStream &operator>>(QDataStream &in, DocumentProcessResult &pd)
|
||||||
{
|
{
|
||||||
int numPages, numOutlines;
|
qsizetype numPages, numOutlines;
|
||||||
in >> numPages;
|
in >> numPages;
|
||||||
in >> numOutlines;
|
in >> numOutlines;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user