From e5cb0b191aed020da99757c117dae014ea65c6ba Mon Sep 17 00:00:00 2001 From: tsepez Date: Wed, 26 Oct 2016 15:06:11 -0700 Subject: Take advantage of implicit std::unique_ptr<>(nulltpr_t) ctor. Review-Url: https://codereview.chromium.org/2453163002 --- core/fpdfdoc/cpdf_annotlist.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/fpdfdoc/cpdf_annotlist.cpp') diff --git a/core/fpdfdoc/cpdf_annotlist.cpp b/core/fpdfdoc/cpdf_annotlist.cpp index b626115de1..4821f8e6dd 100644 --- a/core/fpdfdoc/cpdf_annotlist.cpp +++ b/core/fpdfdoc/cpdf_annotlist.cpp @@ -25,13 +25,13 @@ std::unique_ptr CreatePopupAnnot(CPDF_Annot* pAnnot, CPDF_Document* pDocument) { CPDF_Dictionary* pParentDict = pAnnot->GetAnnotDict(); if (!pParentDict) - return std::unique_ptr(); + return nullptr; // TODO(jaepark): We shouldn't strip BOM for some strings and not for others. // See pdfium:593. CFX_WideString sContents = pParentDict->GetUnicodeTextFor("Contents"); if (sContents.IsEmpty()) - return std::unique_ptr(); + return nullptr; CPDF_Dictionary* pAnnotDict = new CPDF_Dictionary(pDocument->GetByteStringPool()); -- cgit v1.2.3