From b01848adb2cdac166fb1ea5500c8ad367c8f600f Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Thu, 5 Oct 2017 14:27:34 -0400 Subject: Remove unused parameters Remove unused params from CPDF_VariableText methods. Change-Id: Ia02f99ea84f0c29e9f674a2cb837b422de390d33 Reviewed-on: https://pdfium-review.googlesource.com/15670 Reviewed-by: Ryan Harrison Commit-Queue: dsinclair --- fpdfsdk/pwl/cpwl_edit_impl.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'fpdfsdk/pwl/cpwl_edit_impl.cpp') diff --git a/fpdfsdk/pwl/cpwl_edit_impl.cpp b/fpdfsdk/pwl/cpwl_edit_impl.cpp index 7d8c0c3ba6..7da5cddc4a 100644 --- a/fpdfsdk/pwl/cpwl_edit_impl.cpp +++ b/fpdfsdk/pwl/cpwl_edit_impl.cpp @@ -1535,8 +1535,8 @@ bool CPWL_EditImpl::InsertWord(uint16_t word, return false; m_pVT->UpdateWordPlace(m_wpCaret); - SetCaret(m_pVT->InsertWord(m_wpCaret, word, - GetCharSetFromUnicode(word, charset), pWordProps)); + SetCaret( + m_pVT->InsertWord(m_wpCaret, word, GetCharSetFromUnicode(word, charset))); m_SelState.Set(m_wpCaret, m_wpCaret); if (m_wpCaret == m_wpOldCaret) return false; @@ -1562,7 +1562,7 @@ bool CPWL_EditImpl::InsertReturn(const CPVT_SecProps* pSecProps, return false; m_pVT->UpdateWordPlace(m_wpCaret); - SetCaret(m_pVT->InsertSection(m_wpCaret, pSecProps, pWordProps)); + SetCaret(m_pVT->InsertSection(m_wpCaret)); m_SelState.Set(m_wpCaret, m_wpCaret); if (m_wpCaret == m_wpOldCaret) return false; @@ -1846,18 +1846,18 @@ CPVT_WordPlace CPWL_EditImpl::DoInsertText(const CPVT_WordPlace& place, uint16_t word = sText[i]; switch (word) { case 0x0D: - wp = m_pVT->InsertSection(wp, nullptr, nullptr); + wp = m_pVT->InsertSection(wp); if (i + 1 < sz && sText[i + 1] == 0x0A) i++; break; case 0x0A: - wp = m_pVT->InsertSection(wp, nullptr, nullptr); + wp = m_pVT->InsertSection(wp); break; case 0x09: word = 0x20; default: - wp = m_pVT->InsertWord(wp, word, GetCharSetFromUnicode(word, charset), - nullptr); + wp = + m_pVT->InsertWord(wp, word, GetCharSetFromUnicode(word, charset)); break; } } -- cgit v1.2.3