summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2022-12-01 22:56:16 +0100
committerAlbert Astals Cid <aacid@kde.org>2022-12-01 22:57:44 +0100
commit54c93aade58b60699c0bf2c7962c274b6e6f7772 (patch)
treed5742ddf4960df2f159df91ecb7eebcd66269ca5
parent40c737a450153bdde180e0ee6e069a08c8e04dc4 (diff)
Qt6: Less deprecated functions
-rw-r--r--qt6/src/poppler-annotation.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/qt6/src/poppler-annotation.cc b/qt6/src/poppler-annotation.cc
index ed27a1f1..1a3c8130 100644
--- a/qt6/src/poppler-annotation.cc
+++ b/qt6/src/poppler-annotation.cc
@@ -2840,11 +2840,11 @@ AnnotStampImageHelper *StampAnnotationPrivate::convertQImageToAnnotStampImageHel
AnnotStampImageHelper *annotImg;
- if (sMaskData.count() > 0) {
- AnnotStampImageHelper sMask(parentDoc->doc, width, height, ColorSpace::DeviceGray, 8, sMaskData.data(), sMaskData.count());
- annotImg = new AnnotStampImageHelper(parentDoc->doc, width, height, colorSpace, bitsPerComponent, data.data(), data.count(), sMask.getRef());
+ if (sMaskData.size() > 0) {
+ AnnotStampImageHelper sMask(parentDoc->doc, width, height, ColorSpace::DeviceGray, 8, sMaskData.data(), sMaskData.size());
+ annotImg = new AnnotStampImageHelper(parentDoc->doc, width, height, colorSpace, bitsPerComponent, data.data(), data.size(), sMask.getRef());
} else {
- annotImg = new AnnotStampImageHelper(parentDoc->doc, width, height, colorSpace, bitsPerComponent, data.data(), data.count());
+ annotImg = new AnnotStampImageHelper(parentDoc->doc, width, height, colorSpace, bitsPerComponent, data.data(), data.size());
}
return annotImg;