diff options
author | weili <weili@chromium.org> | 2016-07-19 16:06:10 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-07-19 16:06:10 -0700 |
commit | 8ca60b2cda3efc112c987c1d57d1eb8568667da9 (patch) | |
tree | b9170a729249b4f4aa8751e2f713afed77fca15b /core/fxge/dib/fx_dib_transform.cpp | |
parent | 5b36f0a0eff7f3666a0e642640db3c89e4bb6748 (diff) | |
download | pdfium-8ca60b2cda3efc112c987c1d57d1eb8568667da9.tar.xz |
Use smart pointers for various Jbig2 decoding contexts
Use unique_ptr for class owned member variables, and remove unnecessary
or unused functions and member variable.
BUG=pdfium:518
Review-Url: https://codereview.chromium.org/2149903002
Diffstat (limited to 'core/fxge/dib/fx_dib_transform.cpp')
-rw-r--r-- | core/fxge/dib/fx_dib_transform.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxge/dib/fx_dib_transform.cpp b/core/fxge/dib/fx_dib_transform.cpp index 82b9cf781f..d997a8fa79 100644 --- a/core/fxge/dib/fx_dib_transform.cpp +++ b/core/fxge/dib/fx_dib_transform.cpp @@ -190,7 +190,7 @@ CFX_DIBitmap* CFX_DIBSource::SwapXY(FX_BOOL bXFlip, delete pTransBitmap; return nullptr; } - pTransBitmap->CopyPalette(m_pPalette); + pTransBitmap->CopyPalette(m_pPalette.get()); int dest_pitch = pTransBitmap->GetPitch(); uint8_t* dest_buf = pTransBitmap->GetBuffer(); int row_start = bXFlip ? m_Height - dest_clip.right : dest_clip.left; |