[poppler] qt5/src

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jul 17 16:28:06 UTC 2019


 qt5/src/poppler-annotation.cc |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 8ac28200d29c84076fe8845ffacfcf8aa1d1a0f7
Author: Albert Astals Cid <aacid at kde.org>
Date:   Wed Jul 17 17:43:30 2019 +0200

    qt5: Simplify code that creates an invalid Ref

diff --git a/qt5/src/poppler-annotation.cc b/qt5/src/poppler-annotation.cc
index c2798408..5f23782d 100644
--- a/qt5/src/poppler-annotation.cc
+++ b/qt5/src/poppler-annotation.cc
@@ -769,8 +769,7 @@ Ref AnnotationPrivate::pdfObjectReference() const
 {
     if (pdfAnnot == nullptr)
     {
-        const Ref invalid_ref = { -1, -1 };
-        return invalid_ref;
+        return Ref::INVALID();
     }
 
     return pdfAnnot->getRef();


More information about the poppler mailing list