diff options
author | thestig <thestig@chromium.org> | 2016-05-26 10:45:30 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-26 10:45:30 -0700 |
commit | 41846a0fcc7d98476a18ec6c97778ead58069d99 (patch) | |
tree | a91f1273a03ca027c066a571b41f590896404574 /core/fxge/win32/win32_int.h | |
parent | e9885e77a7daf7a8d45eaf0290a1ea5f208c24c6 (diff) | |
download | pdfium-41846a0fcc7d98476a18ec6c97778ead58069d99.tar.xz |
Remove default argument from RestoreState() methods.
Review-Url: https://codereview.chromium.org/2009803003
Diffstat (limited to 'core/fxge/win32/win32_int.h')
-rw-r--r-- | core/fxge/win32/win32_int.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/core/fxge/win32/win32_int.h b/core/fxge/win32/win32_int.h index 619ac2fdae..d2d091bc19 100644 --- a/core/fxge/win32/win32_int.h +++ b/core/fxge/win32/win32_int.h @@ -109,13 +109,8 @@ class CGdiDeviceDriver : public IFX_RenderDeviceDriver { protected: // IFX_RenderDeviceDriver int GetDeviceCaps(int caps_id) override; - void SaveState() override { SaveDC(m_hDC); } - void RestoreState(FX_BOOL bKeepSaved = FALSE) override { - RestoreDC(m_hDC, -1); - if (bKeepSaved) { - SaveDC(m_hDC); - } - } + void SaveState() override; + void RestoreState(bool bKeepSaved) override; FX_BOOL SetClip_PathFill(const CFX_PathData* pPathData, const CFX_Matrix* pObject2Device, int fill_mode) override; @@ -298,7 +293,7 @@ class CPSPrinterDriver : public IFX_RenderDeviceDriver { FX_BOOL StartRendering() override; void EndRendering() override; void SaveState() override; - void RestoreState(FX_BOOL bKeepSaved = FALSE) override; + void RestoreState(bool bKeepSaved) override; FX_BOOL SetClip_PathFill(const CFX_PathData* pPathData, const CFX_Matrix* pObject2Device, int fill_mode) override; |