[poppler] qt5/tests

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sun Sep 2 11:11:01 UTC 2018


 qt5/tests/check_annotations.cpp |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

New commits:
commit 09cc5fd1b4ef758b1f496b33bc5c5cb9e63b08eb
Author: Albert Astals Cid <aacid at kde.org>
Date:   Sun Sep 2 13:10:45 2018 +0200

    qt5: test: Compile with old qt

diff --git a/qt5/tests/check_annotations.cpp b/qt5/tests/check_annotations.cpp
index f53ec513..0e015aac 100644
--- a/qt5/tests/check_annotations.cpp
+++ b/qt5/tests/check_annotations.cpp
@@ -49,12 +49,12 @@ void TestAnnotations::checkFontSizeAndColor()
     std::unique_ptr<Poppler::Document> doc{
       Poppler::Document::load(TESTDATADIR "/unittestcases/UseNone.pdf")
     };
-    QVERIFY(doc);
+    QVERIFY(doc.get());
 
     std::unique_ptr<Poppler::Page> page{
       doc->page(0)
     };
-    QVERIFY(page);
+    QVERIFY(page.get());
 
     for (const auto& color : testColors) {
       auto annot = std::make_unique<Poppler::TextAnnotation>(Poppler::TextAnnotation::InPlace);
@@ -66,7 +66,7 @@ void TestAnnotations::checkFontSizeAndColor()
     }
 
     std::unique_ptr<Poppler::PDFConverter> conv(doc->pdfConverter());
-    QVERIFY(conv);
+    QVERIFY(conv.get());
     conv->setOutputFileName(tempFile.fileName());
     conv->setPDFOptions(Poppler::PDFConverter::WithChanges);
     QVERIFY(conv->convert());
@@ -76,12 +76,12 @@ void TestAnnotations::checkFontSizeAndColor()
     std::unique_ptr<Poppler::Document> doc{
       Poppler::Document::load(tempFile.fileName())
     };
-    QVERIFY(doc);
+    QVERIFY(doc.get());
 
     std::unique_ptr<Poppler::Page> page{
       doc->page(0)
     };
-    QVERIFY(page);
+    QVERIFY(page.get());
 
     auto annots = page->annotations();
     QCOMPARE(annots.size(), static_cast<int>(testColors.size()));


More information about the poppler mailing list