From 41846a0fcc7d98476a18ec6c97778ead58069d99 Mon Sep 17 00:00:00 2001 From: thestig Date: Thu, 26 May 2016 10:45:30 -0700 Subject: Remove default argument from RestoreState() methods. Review-Url: https://codereview.chromium.org/2009803003 --- fpdfsdk/fpdf_progressive.cpp | 2 +- fpdfsdk/fpdfformfill.cpp | 2 +- fpdfsdk/fpdfview.cpp | 2 +- fpdfsdk/fxedit/fxet_pageobjs.cpp | 6 +++--- fpdfsdk/pdfwindow/PWL_ListCtrl.cpp | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) (limited to 'fpdfsdk') diff --git a/fpdfsdk/fpdf_progressive.cpp b/fpdfsdk/fpdf_progressive.cpp index 411ae17af4..c66807cc91 100644 --- a/fpdfsdk/fpdf_progressive.cpp +++ b/fpdfsdk/fpdf_progressive.cpp @@ -91,6 +91,6 @@ DLLEXPORT void STDCALL FPDF_RenderPage_Close(FPDF_PAGE page) { if (!pContext) return; - pContext->m_pDevice->RestoreState(); + pContext->m_pDevice->RestoreState(false); pPage->SetRenderContext(std::unique_ptr()); } diff --git a/fpdfsdk/fpdfformfill.cpp b/fpdfsdk/fpdfformfill.cpp index b1c729b8dc..6bcb605794 100644 --- a/fpdfsdk/fpdfformfill.cpp +++ b/fpdfsdk/fpdfformfill.cpp @@ -374,7 +374,7 @@ static void FFLCommon(FPDF_FORMHANDLE hHandle, pPageView->PageView_OnDraw(pDevice.get(), &matrix, &options, clip); #endif // PDF_ENABLE_XFA - pDevice->RestoreState(); + pDevice->RestoreState(false); delete options.m_pOCContext; #ifdef PDF_ENABLE_XFA options.m_pOCContext = NULL; diff --git a/fpdfsdk/fpdfview.cpp b/fpdfsdk/fpdfview.cpp index 0040c090f4..9bf983974c 100644 --- a/fpdfsdk/fpdfview.cpp +++ b/fpdfsdk/fpdfview.cpp @@ -912,7 +912,7 @@ void FPDF_RenderPage_Retail(CRenderContext* pContext, pContext->m_pContext, pContext->m_pDevice, pContext->m_pOptions); pContext->m_pRenderer->Start(pause); if (bNeedToRestore) - pContext->m_pDevice->RestoreState(); + pContext->m_pDevice->RestoreState(false); } DLLEXPORT int STDCALL FPDF_GetPageSizeByIndex(FPDF_DOCUMENT document, diff --git a/fpdfsdk/fxedit/fxet_pageobjs.cpp b/fpdfsdk/fxedit/fxet_pageobjs.cpp index be386095e2..91039f49de 100644 --- a/fpdfsdk/fxedit/fxet_pageobjs.cpp +++ b/fpdfsdk/fxedit/fxet_pageobjs.cpp @@ -136,7 +136,7 @@ void IFX_Edit::DrawUnderline(CFX_RenderDevice* pDevice, } } - pDevice->RestoreState(); + pDevice->RestoreState(false); } void IFX_Edit::DrawEdit(CFX_RenderDevice* pDevice, @@ -260,7 +260,7 @@ void IFX_Edit::DrawEdit(CFX_RenderDevice* pDevice, } } - pDevice->RestoreState(); + pDevice->RestoreState(false); } void IFX_Edit::DrawRichEdit(CFX_RenderDevice* pDevice, @@ -385,7 +385,7 @@ void IFX_Edit::DrawRichEdit(CFX_RenderDevice* pDevice, } } - pDevice->RestoreState(); + pDevice->RestoreState(false); } static void AddRectToPageObjects(CPDF_PageObjectHolder* pObjectHolder, diff --git a/fpdfsdk/pdfwindow/PWL_ListCtrl.cpp b/fpdfsdk/pdfwindow/PWL_ListCtrl.cpp index 8067907978..dde2160943 100644 --- a/fpdfsdk/pdfwindow/PWL_ListCtrl.cpp +++ b/fpdfsdk/pdfwindow/PWL_ListCtrl.cpp @@ -160,7 +160,7 @@ void CPWL_ListCtrl::DrawChildAppearance(CFX_RenderDevice* pDevice, } } - pDevice->RestoreState(); + pDevice->RestoreState(false); } int32_t CPWL_ListCtrl::GetItemIndex(CPWL_Wnd* pItem) { -- cgit v1.2.3