From fe433f15d60f92ccde7a928160c2e7cc77dcb8bf Mon Sep 17 00:00:00 2001 From: dsinclair Date: Mon, 6 Jun 2016 12:03:31 -0700 Subject: 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 --- xfa/fxfa/app/xfa_textlayout.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xfa/fxfa') diff --git a/xfa/fxfa/app/xfa_textlayout.cpp b/xfa/fxfa/app/xfa_textlayout.cpp index df35c39ed4..3c7497c660 100644 --- a/xfa/fxfa/app/xfa_textlayout.cpp +++ b/xfa/fxfa/app/xfa_textlayout.cpp @@ -1174,7 +1174,7 @@ FX_BOOL CXFA_TextLayout::DrawString(CFX_RenderDevice* pFxDevice, std::unique_ptr pDevice( new CFDE_RenderDevice(pFxDevice, FALSE)); - FDE_HDEVICESTATE state = pDevice->SaveState(); + pDevice->SaveState(); pDevice->SetClipRect(rtClip); std::unique_ptr pSolidBrush(new CFDE_Brush); @@ -1223,7 +1223,7 @@ FX_BOOL CXFA_TextLayout::DrawString(CFX_RenderDevice* pFxDevice, tmDoc2Device); } } - pDevice->RestoreState(state); + pDevice->RestoreState(); FX_Free(pCharPos); return iPieceLines; } -- cgit v1.2.3