Index: fpdfsdk/fpdfdoc_unittest.cpp |
diff --git a/fpdfsdk/fpdfdoc_unittest.cpp b/fpdfsdk/fpdfdoc_unittest.cpp |
index 59f9e31e25a7ea1079dad94eeceafc33855b8672..64b6f554c8d9093851200aa41689124da61a3f55 100644 |
--- a/fpdfsdk/fpdfdoc_unittest.cpp |
+++ b/fpdfsdk/fpdfdoc_unittest.cpp |
@@ -61,7 +61,7 @@ class PDFDocTest : public testing::Test { |
CPDF_ModuleMgr* module_mgr = CPDF_ModuleMgr::Get(); |
module_mgr->InitPageModule(); |
- m_pDoc.reset(new CPDF_TestPdfDocument()); |
+ m_pDoc = WrapUnique(new CPDF_TestPdfDocument()); |
m_pIndirectObjs = m_pDoc->GetHolder(); |
// Setup the root directory. |
m_pRootObj.reset(new CPDF_Dictionary()); |