summaryrefslogtreecommitdiff
path: root/core/fpdfapi/page/cpdf_image.h
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-12-14 13:54:33 -0800
committerCommit bot <commit-bot@chromium.org>2016-12-14 13:54:33 -0800
commit5bed98c044a470e696e3b719d33cb5dc14aa7c32 (patch)
treee0834201765094d19922c961887938bf69378430 /core/fpdfapi/page/cpdf_image.h
parent6597391975cdf4e91e4cd04f8e73f8276c72ceec (diff)
downloadpdfium-5bed98c044a470e696e3b719d33cb5dc14aa7c32.tar.xz
Remove some usage of |return XXX.release()| anti-pattern.
Review-Url: https://codereview.chromium.org/2571313002
Diffstat (limited to 'core/fpdfapi/page/cpdf_image.h')
-rw-r--r--core/fpdfapi/page/cpdf_image.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/fpdfapi/page/cpdf_image.h b/core/fpdfapi/page/cpdf_image.h
index e0fc761b38..6591897d1e 100644
--- a/core/fpdfapi/page/cpdf_image.h
+++ b/core/fpdfapi/page/cpdf_image.h
@@ -44,11 +44,11 @@ class CPDF_Image {
bool IsMask() const { return m_bIsMask; }
bool IsInterpol() const { return m_bInterpolate; }
- CFX_DIBSource* LoadDIBSource(CFX_DIBSource** ppMask = nullptr,
- uint32_t* pMatteColor = nullptr,
- bool bStdCS = false,
- uint32_t GroupFamily = 0,
- bool bLoadMask = false) const;
+ std::unique_ptr<CFX_DIBSource> LoadDIBSource(CFX_DIBSource** ppMask = nullptr,
+ uint32_t* pMatteColor = nullptr,
+ bool bStdCS = false,
+ uint32_t GroupFamily = 0,
+ bool bLoadMask = false) const;
void SetImage(const CFX_DIBitmap* pDIBitmap);
void SetJpegImage(const CFX_RetainPtr<IFX_SeekableReadStream>& pFile);