diff options
author | Lei Zhang <thestig@chromium.org> | 2015-05-08 11:03:55 -0700 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-05-08 11:03:55 -0700 |
commit | f0a169e6fd5718995fa6ef8749c8d16cdad84985 (patch) | |
tree | 3194ef3427aee1c683efe6b54abdd65b2d6dff9d /core/src/fxge/dib/fx_dib_transform.cpp | |
parent | 21031ad28a73f0633e720997d310440c5bc31ec5 (diff) | |
download | pdfium-f0a169e6fd5718995fa6ef8749c8d16cdad84985.tar.xz |
Fix a bunch of -Wunused-but-set-variable warnings.
Also fix a few nits and other errors along the way.
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1098583002
Diffstat (limited to 'core/src/fxge/dib/fx_dib_transform.cpp')
-rw-r--r-- | core/src/fxge/dib/fx_dib_transform.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/core/src/fxge/dib/fx_dib_transform.cpp b/core/src/fxge/dib/fx_dib_transform.cpp index 457fe2e1f1..4544506e7b 100644 --- a/core/src/fxge/dib/fx_dib_transform.cpp +++ b/core/src/fxge/dib/fx_dib_transform.cpp @@ -70,7 +70,6 @@ CFX_DIBitmap* CFX_DIBSource::SwapXY(FX_BOOL bXFlip, FX_BOOL bYFlip, const FX_REC return NULL; } pTransBitmap->CopyPalette(m_pPalette); - int src_pitch = m_Pitch; int dest_pitch = pTransBitmap->GetPitch(); FX_LPBYTE dest_buf = pTransBitmap->GetBuffer(); int row_start = bXFlip ? m_Height - dest_clip.right : dest_clip.left; @@ -130,7 +129,6 @@ CFX_DIBitmap* CFX_DIBSource::SwapXY(FX_BOOL bXFlip, FX_BOOL bYFlip, const FX_REC } } if (m_pAlphaMask) { - src_pitch = m_pAlphaMask->m_Pitch; dest_pitch = pTransBitmap->m_pAlphaMask->GetPitch(); dest_buf = pTransBitmap->m_pAlphaMask->GetBuffer(); int dest_step = bYFlip ? -dest_pitch : dest_pitch; |