From b89669975f6156fce4ced5c8998125a845f8e7dc Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Thu, 21 Sep 2017 14:51:57 -0400 Subject: Move CFX_AutoRestorer to fxcrt::AutoRestorer This CL renames CFX_AutoRestorer to just AutoRestorer and places in the fxcrt namespace. Bug: pdfium:898 Change-Id: Id9f36df94e95f3b2a55054bc198ca1bfd249ee3d Reviewed-on: https://pdfium-review.googlesource.com/14450 Commit-Queue: dsinclair Reviewed-by: Tom Sepez --- fpdfsdk/pwl/cpwl_edit_impl.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'fpdfsdk/pwl') diff --git a/fpdfsdk/pwl/cpwl_edit_impl.cpp b/fpdfsdk/pwl/cpwl_edit_impl.cpp index c65199955b..89b19de63d 100644 --- a/fpdfsdk/pwl/cpwl_edit_impl.cpp +++ b/fpdfsdk/pwl/cpwl_edit_impl.cpp @@ -22,7 +22,7 @@ #include "core/fpdfdoc/cpvt_section.h" #include "core/fpdfdoc/cpvt_word.h" #include "core/fpdfdoc/ipvt_fontmap.h" -#include "core/fxcrt/cfx_autorestorer.h" +#include "core/fxcrt/autorestorer.h" #include "core/fxcrt/fx_codepage.h" #include "core/fxge/cfx_graphstatedata.h" #include "core/fxge/cfx_pathdata.h" @@ -1012,7 +1012,7 @@ void CPWL_EditImpl::SetScrollInfo() { if (m_bNotifyFlag) return; - CFX_AutoRestorer restorer(&m_bNotifyFlag); + AutoRestorer restorer(&m_bNotifyFlag); m_bNotifyFlag = true; PWL_SCROLL_INFO Info; @@ -1047,7 +1047,7 @@ void CPWL_EditImpl::SetScrollPosY(float fy) { if (m_pNotify) { if (!m_bNotifyFlag) { - CFX_AutoRestorer restorer(&m_bNotifyFlag); + AutoRestorer restorer(&m_bNotifyFlag); m_bNotifyFlag = true; m_pNotify->SetScrollPosition(fy); } @@ -1157,7 +1157,7 @@ void CPWL_EditImpl::Refresh() { if (m_pNotify) { if (!m_bNotifyFlag) { - CFX_AutoRestorer restorer(&m_bNotifyFlag); + AutoRestorer restorer(&m_bNotifyFlag); m_bNotifyFlag = true; if (const CPWL_EditImpl_RectArray* pRects = m_Refresh.GetRefreshRects()) { @@ -1227,7 +1227,7 @@ void CPWL_EditImpl::RefreshWordRange(const CPVT_WordRange& wr) { if (m_pNotify) { if (!m_bNotifyFlag) { - CFX_AutoRestorer restorer(&m_bNotifyFlag); + AutoRestorer restorer(&m_bNotifyFlag); m_bNotifyFlag = true; CFX_FloatRect rcRefresh = VTToEdit(rcWord); m_pNotify->InvalidateRect(&rcRefresh); @@ -1241,7 +1241,7 @@ void CPWL_EditImpl::RefreshWordRange(const CPVT_WordRange& wr) { if (m_pNotify) { if (!m_bNotifyFlag) { - CFX_AutoRestorer restorer(&m_bNotifyFlag); + AutoRestorer restorer(&m_bNotifyFlag); m_bNotifyFlag = true; CFX_FloatRect rcRefresh = VTToEdit(rcLine); m_pNotify->InvalidateRect(&rcRefresh); @@ -1280,7 +1280,7 @@ void CPWL_EditImpl::SetCaretInfo() { ptFoot.y = line.ptLine.y + line.fLineDescent; } - CFX_AutoRestorer restorer(&m_bNotifyFlag); + AutoRestorer restorer(&m_bNotifyFlag); m_bNotifyFlag = true; m_pNotify->SetCaret(m_SelState.IsEmpty(), VTToEdit(ptHead), VTToEdit(ptFoot)); -- cgit v1.2.3