commit | 8ac28200d29c84076fe8845ffacfcf8aa1d1a0f7 | [log] [tgz] |
---|---|---|
author | Albert Astals Cid <aacid@kde.org> | Wed Jul 17 17:43:30 2019 +0200 |
committer | Albert Astals Cid <tsdgeos@yahoo.es> | Wed Jul 17 15:44:33 2019 +0000 |
tree | b90d33f371f6ca9bc5d6dedf0e478606779a130e | |
parent | 95f5088f2fef4f0a7440c30df648d44a3b247a40 [diff] |
qt5: Simplify code that creates an invalid Ref
diff --git a/qt5/src/poppler-annotation.cc b/qt5/src/poppler-annotation.cc index c279840..5f23782 100644 --- a/qt5/src/poppler-annotation.cc +++ b/qt5/src/poppler-annotation.cc
@@ -769,8 +769,7 @@ { if (pdfAnnot == nullptr) { - const Ref invalid_ref = { -1, -1 }; - return invalid_ref; + return Ref::INVALID(); } return pdfAnnot->getRef();