From 9e05ee1e7bfb74d56d69620ad1e72b03e29b9237 Mon Sep 17 00:00:00 2001 From: tsepez Date: Mon, 21 Nov 2016 13:19:10 -0800 Subject: Make CPDF_Stream() take unique_ptr's to its dictionary. Review-Url: https://codereview.chromium.org/2520493002 --- xfa/fxfa/app/xfa_ffapp_unittest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xfa/fxfa') diff --git a/xfa/fxfa/app/xfa_ffapp_unittest.cpp b/xfa/fxfa/app/xfa_ffapp_unittest.cpp index 10c0545fbb..b35780d218 100644 --- a/xfa/fxfa/app/xfa_ffapp_unittest.cpp +++ b/xfa/fxfa/app/xfa_ffapp_unittest.cpp @@ -46,11 +46,11 @@ TEST(CXFAFileRead, NormalStreams) { // 16 chars total. stream1->InitStream(reinterpret_cast("one t"), 5, - new CPDF_Dictionary()); + pdfium::MakeUnique()); stream2->InitStream(reinterpret_cast("wo "), 3, - new CPDF_Dictionary()); + pdfium::MakeUnique()); stream3->InitStream(reinterpret_cast("three!!!"), 8, - new CPDF_Dictionary()); + pdfium::MakeUnique()); streams.push_back(stream1.get()); streams.push_back(stream2.get()); -- cgit v1.2.3