summaryrefslogtreecommitdiff
path: root/core/fxge/dib/fx_dib_engine.cpp
diff options
context:
space:
mode:
authorthestig <thestig@chromium.org>2016-09-28 22:06:20 -0700
committerCommit bot <commit-bot@chromium.org>2016-09-28 22:06:20 -0700
commitaca4fc767d663e43d323b96a75804a8f5cafd8d4 (patch)
tree3e4e5c168af167ba6044c83431511b9a978773ed /core/fxge/dib/fx_dib_engine.cpp
parent3873f302948e37aad7066c8231575f486015cc34 (diff)
downloadpdfium-aca4fc767d663e43d323b96a75804a8f5cafd8d4.tar.xz
Replace a few more std::unique_ptr.reset() with WrapUnique assignments.
And fix a typo. TBR=tsepez@chromium.org Review-Url: https://codereview.chromium.org/2382443004
Diffstat (limited to 'core/fxge/dib/fx_dib_engine.cpp')
-rw-r--r--core/fxge/dib/fx_dib_engine.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/fxge/dib/fx_dib_engine.cpp b/core/fxge/dib/fx_dib_engine.cpp
index 7ba031e8aa..e8401d7663 100644
--- a/core/fxge/dib/fx_dib_engine.cpp
+++ b/core/fxge/dib/fx_dib_engine.cpp
@@ -930,9 +930,9 @@ FX_BOOL CFX_ImageStretcher::Continue(IFX_Pause* pPause) {
}
FX_BOOL CFX_ImageStretcher::StartStretch() {
- m_pStretchEngine.reset(new CStretchEngine(m_pDest, m_DestFormat, m_DestWidth,
- m_DestHeight, m_ClipRect, m_pSource,
- m_Flags));
+ m_pStretchEngine = WrapUnique(
+ new CStretchEngine(m_pDest, m_DestFormat, m_DestWidth, m_DestHeight,
+ m_ClipRect, m_pSource, m_Flags));
m_pStretchEngine->StartStretchHorz();
if (SourceSizeWithinLimit(m_pSource->GetWidth(), m_pSource->GetHeight())) {
m_pStretchEngine->Continue(nullptr);