summaryrefslogtreecommitdiff
path: root/core/fxge/win32/fx_win32_print.cpp
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-12-14 19:48:47 -0800
committerCommit bot <commit-bot@chromium.org>2016-12-14 19:48:47 -0800
commitb8642f8a3c3a6d359c4e319b8ba91f8df6448a4f (patch)
treebc5443fec6a3bf35dd883a66cdfd056397998013 /core/fxge/win32/fx_win32_print.cpp
parentc7739322e5cdcc5779bdde2a1560ea3dee891e51 (diff)
downloadpdfium-b8642f8a3c3a6d359c4e319b8ba91f8df6448a4f.tar.xz
More unique_ptr returns from DIB methods.
Review-Url: https://codereview.chromium.org/2572293002
Diffstat (limited to 'core/fxge/win32/fx_win32_print.cpp')
-rw-r--r--core/fxge/win32/fx_win32_print.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/core/fxge/win32/fx_win32_print.cpp b/core/fxge/win32/fx_win32_print.cpp
index 5a1a01a418..2ff072f6a5 100644
--- a/core/fxge/win32/fx_win32_print.cpp
+++ b/core/fxge/win32/fx_win32_print.cpp
@@ -108,8 +108,8 @@ bool CGdiPrinterDriver::StretchDIBits(const CFX_DIBSource* pSource,
return false;
if (dest_width < 0 || dest_height < 0) {
- std::unique_ptr<CFX_DIBitmap> pFlipped(
- pSource->FlipImage(dest_width < 0, dest_height < 0));
+ std::unique_ptr<CFX_DIBitmap> pFlipped =
+ pSource->FlipImage(dest_width < 0, dest_height < 0);
if (!pFlipped)
return false;
@@ -135,8 +135,8 @@ bool CGdiPrinterDriver::StretchDIBits(const CFX_DIBSource* pSource,
return false;
if (dest_width < 0 || dest_height < 0) {
- std::unique_ptr<CFX_DIBitmap> pFlipped(
- pSource->FlipImage(dest_width < 0, dest_height < 0));
+ std::unique_ptr<CFX_DIBitmap> pFlipped =
+ pSource->FlipImage(dest_width < 0, dest_height < 0);
if (!pFlipped)
return false;
@@ -184,8 +184,8 @@ bool CGdiPrinterDriver::StartDIBits(const CFX_DIBSource* pSource,
if (FXSYS_fabs(pMatrix->a) >= 0.5f || FXSYS_fabs(pMatrix->d) >= 0.5f)
return false;
- std::unique_ptr<CFX_DIBitmap> pTransformed(
- pSource->SwapXY(pMatrix->c > 0, pMatrix->b < 0));
+ std::unique_ptr<CFX_DIBitmap> pTransformed =
+ pSource->SwapXY(pMatrix->c > 0, pMatrix->b < 0);
if (!pTransformed)
return false;