summaryrefslogtreecommitdiff
path: root/xfa/fde/tto
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-06-06 12:03:31 -0700
committerCommit bot <commit-bot@chromium.org>2016-06-06 12:03:32 -0700
commitfe433f15d60f92ccde7a928160c2e7cc77dcb8bf (patch)
tree6b3e8362ba26166c29441b2fc32817fe7d93f4c7 /xfa/fde/tto
parent5a5f251ce8646ec421aa9e35d8bbca71a984770a (diff)
downloadpdfium-fe433f15d60f92ccde7a928160c2e7cc77dcb8bf.tar.xz
Remove FDE_HDEVICESTATE.
The value returned is always NULL and when passed as a param is never used. Review-Url: https://codereview.chromium.org/2044623002
Diffstat (limited to 'xfa/fde/tto')
-rw-r--r--xfa/fde/tto/fde_textout.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/xfa/fde/tto/fde_textout.cpp b/xfa/fde/tto/fde_textout.cpp
index 7a0107d0f4..d9ada61d77 100644
--- a/xfa/fde/tto/fde_textout.cpp
+++ b/xfa/fde/tto/fde_textout.cpp
@@ -775,7 +775,7 @@ void CFDE_TextOut::OnDraw(const CFX_RectF& rtClip) {
CFDE_Brush* pBrush = new CFDE_Brush;
pBrush->SetColor(m_TxtColor);
CFDE_Pen* pPen = NULL;
- FDE_HDEVICESTATE hDev = m_pRenderDevice->SaveState();
+ m_pRenderDevice->SaveState();
if (rtClip.Width() > 0.0f && rtClip.Height() > 0.0f) {
m_pRenderDevice->SetClipRect(rtClip);
}
@@ -795,7 +795,7 @@ void CFDE_TextOut::OnDraw(const CFX_RectF& rtClip) {
DrawLine(pPiece, pPen);
}
}
- m_pRenderDevice->RestoreState(hDev);
+ m_pRenderDevice->RestoreState();
delete pBrush;
delete pPen;
}