summaryrefslogtreecommitdiff
path: root/xfa/fxfa/app/xfa_textlayout.cpp
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/fxfa/app/xfa_textlayout.cpp
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/fxfa/app/xfa_textlayout.cpp')
-rw-r--r--xfa/fxfa/app/xfa_textlayout.cpp4
1 files changed, 2 insertions, 2 deletions
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<CFDE_RenderDevice> pDevice(
new CFDE_RenderDevice(pFxDevice, FALSE));
- FDE_HDEVICESTATE state = pDevice->SaveState();
+ pDevice->SaveState();
pDevice->SetClipRect(rtClip);
std::unique_ptr<CFDE_Brush> 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;
}