From 171cb27a720036c48ae3a6176084e880742af0a9 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Tue, 15 Aug 2017 09:43:07 -0400 Subject: Remove default params from xfa/fde code. This CL removes the default params from methods in xfa/fde. Change-Id: Ide93a51430c62753656b9e9c0bcd842d8179aa3c Reviewed-on: https://pdfium-review.googlesource.com/10952 Reviewed-by: Ryan Harrison Commit-Queue: dsinclair --- xfa/fwl/cfwl_comboedit.cpp | 2 +- xfa/fwl/cfwl_edit.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'xfa/fwl') diff --git a/xfa/fwl/cfwl_comboedit.cpp b/xfa/fwl/cfwl_comboedit.cpp index 22ad6bff32..e7a2c6eb8f 100644 --- a/xfa/fwl/cfwl_comboedit.cpp +++ b/xfa/fwl/cfwl_comboedit.cpp @@ -28,7 +28,7 @@ void CFWL_ComboEdit::ClearSelected() { void CFWL_ComboEdit::SetSelected() { FlagFocus(true); - GetTxtEdtEngine()->MoveCaretPos(MC_End); + GetTxtEdtEngine()->MoveCaretPos(MC_End, false, false); AddSelRange(0); } diff --git a/xfa/fwl/cfwl_edit.cpp b/xfa/fwl/cfwl_edit.cpp index 526275313f..92d8c0266b 100644 --- a/xfa/fwl/cfwl_edit.cpp +++ b/xfa/fwl/cfwl_edit.cpp @@ -348,7 +348,7 @@ bool CFWL_Edit::Cut(CFX_WideString& wsCut) { wsCut += wsTemp; wsTemp.clear(); } - m_EdtEngine.Delete(0); + m_EdtEngine.Delete(0, false); return true; } @@ -623,13 +623,13 @@ void CFWL_Edit::RenderText(CFX_RenderDevice* pRenderDev, if (!rtDocClip.IntersectWith(pTextSet->GetRect(pText))) continue; - int32_t iCount = pTextSet->GetDisplayPos(pText, nullptr, false); + int32_t iCount = pTextSet->GetDisplayPos(pText, nullptr); if (iCount < 1) continue; if (char_pos.size() < static_cast(iCount)) char_pos.resize(iCount, FXTEXT_CHARPOS()); - iCount = pTextSet->GetDisplayPos(pText, char_pos.data(), false); + iCount = pTextSet->GetDisplayPos(pText, char_pos.data()); CFDE_TextOut::DrawString(pRenderDev, pTextSet->GetFontColor(), pFont, char_pos.data(), iCount, pTextSet->GetFontSize(), &mt); @@ -1432,7 +1432,7 @@ void CFWL_Edit::OnKeyDown(CFWL_MessageKey* pMsg) { #if (_FX_OS_ == _FX_MACOSX_) m_EdtEngine.Delete(nCaret, true); #else - m_EdtEngine.Delete(nCaret); + m_EdtEngine.Delete(nCaret, false); #endif break; } -- cgit v1.2.3