summaryrefslogtreecommitdiff
path: root/core/fpdfapi/render
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-10-26 15:06:11 -0700
committerCommit bot <commit-bot@chromium.org>2016-10-26 15:06:11 -0700
commite5cb0b191aed020da99757c117dae014ea65c6ba (patch)
tree49f6f8124adbf24f94def640932adbf7e1460175 /core/fpdfapi/render
parentcd5f026e7b277ec73d53e149c7c48ee981547d1a (diff)
downloadpdfium-e5cb0b191aed020da99757c117dae014ea65c6ba.tar.xz
Take advantage of implicit std::unique_ptr<>(nulltpr_t) ctor.
Review-Url: https://codereview.chromium.org/2453163002
Diffstat (limited to 'core/fpdfapi/render')
-rw-r--r--core/fpdfapi/render/fpdf_render_pattern.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fpdfapi/render/fpdf_render_pattern.cpp b/core/fpdfapi/render/fpdf_render_pattern.cpp
index f55a0e8b97..5238550bf5 100644
--- a/core/fpdfapi/render/fpdf_render_pattern.cpp
+++ b/core/fpdfapi/render/fpdf_render_pattern.cpp
@@ -819,7 +819,7 @@ std::unique_ptr<CFX_DIBitmap> DrawPatternBitmap(
std::unique_ptr<CFX_DIBitmap> pBitmap(new CFX_DIBitmap);
if (!pBitmap->Create(width, height,
pPattern->colored() ? FXDIB_Argb : FXDIB_8bppMask)) {
- return std::unique_ptr<CFX_DIBitmap>();
+ return nullptr;
}
CFX_FxgeDevice bitmap_device;
bitmap_device.Attach(pBitmap.get(), false, nullptr, false);