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 --- core/fxge/dib/fx_dib_engine_unittest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/fxge') diff --git a/core/fxge/dib/fx_dib_engine_unittest.cpp b/core/fxge/dib/fx_dib_engine_unittest.cpp index faacebd5fc..d7d66f0755 100644 --- a/core/fxge/dib/fx_dib_engine_unittest.cpp +++ b/core/fxge/dib/fx_dib_engine_unittest.cpp @@ -3,6 +3,7 @@ // found in the LICENSE file. #include +#include #include "core/fpdfapi/parser/cpdf_dictionary.h" #include "core/fpdfapi/parser/cpdf_number.h" @@ -21,7 +22,7 @@ TEST(CStretchEngine, OverflowInCtor) { dict_obj->SetNewFor("Width", 71000); dict_obj->SetNewFor("Height", 12500); std::unique_ptr stream = - pdfium::MakeUnique(nullptr, 0, dict_obj.release()); + pdfium::MakeUnique(nullptr, 0, std::move(dict_obj)); CPDF_DIBSource dib_source; dib_source.Load(nullptr, stream.get(), nullptr, nullptr, nullptr, nullptr, false, 0, false); -- cgit v1.2.3