diff options
author | Albert Astals Cid <aacid@kde.org> | 2017-05-05 15:12:42 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2017-05-05 15:12:42 +0200 |
commit | d73bcd3721f3b53bb97241cc53a6abf807aff782 (patch) | |
tree | 32ef3e45ae9fddbdd648fad2666a01c74c6dafbf /qt4 | |
parent | 9ad9d92591a6389f84919ff2de3668c2b6158dc9 (diff) |
auto_ptr -> unique_ptr
Diffstat (limited to 'qt4')
-rw-r--r-- | qt4/tests/check_fonts.cpp | 4 | ||||
-rw-r--r-- | qt4/tests/check_links.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/qt4/tests/check_fonts.cpp b/qt4/tests/check_fonts.cpp index 267595df..77579a97 100644 --- a/qt4/tests/check_fonts.cpp +++ b/qt4/tests/check_fonts.cpp @@ -23,7 +23,7 @@ static QList<Poppler::FontInfo> loadFontsViaIterator( Poppler::Document *doc, in { int num = count == -1 ? doc->numPages() - from : count; QList<Poppler::FontInfo> list; - std::auto_ptr< Poppler::FontIterator > it( doc->newFontIterator( from ) ); + std::unique_ptr< Poppler::FontIterator > it( doc->newFontIterator( from ) ); while ( it->hasNext() && num ) { list += it->next(); @@ -142,7 +142,7 @@ void TestFontsData::checkFontIterator() Poppler::Document *doc6 = Poppler::Document::load(TESTDATADIR "/tests/cropbox.pdf"); QVERIFY( doc6 ); - std::auto_ptr< Poppler::FontIterator > it; + std::unique_ptr< Poppler::FontIterator > it; // some tests with the 1-page document: // - check a default iterator diff --git a/qt4/tests/check_links.cpp b/qt4/tests/check_links.cpp index d4e7f031..5b6cc59e 100644 --- a/qt4/tests/check_links.cpp +++ b/qt4/tests/check_links.cpp @@ -30,7 +30,7 @@ void TestLinks::checkDocumentWithNoDests() doc = Poppler::Document::load(TESTDATADIR "/unittestcases/WithAttachments.pdf"); QVERIFY( doc ); - std::auto_ptr< Poppler::LinkDestination > dest; + std::unique_ptr< Poppler::LinkDestination > dest; dest.reset( doc->linkDestination("no.dests.in.this.document") ); QVERIFY( !isDestinationValid_pageNumber( dest.get(), doc ) ); QVERIFY( isDestinationValid_name( dest.get() ) ); @@ -79,7 +79,7 @@ void TestLinks::checkDests_xr02() doc = Poppler::Document::load(TESTDATADIR "/unittestcases/xr02.pdf"); QVERIFY( doc ); - std::auto_ptr< Poppler::LinkDestination > dest; + std::unique_ptr< Poppler::LinkDestination > dest; dest.reset( doc->linkDestination("section.1") ); QVERIFY( isDestinationValid_pageNumber( dest.get(), doc ) ); QVERIFY( !isDestinationValid_name( dest.get() ) ); |