summaryrefslogtreecommitdiff
path: root/xfa/fde/cfde_txtedtengine.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-08-15 09:43:07 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-08-15 15:00:00 +0000
commit171cb27a720036c48ae3a6176084e880742af0a9 (patch)
tree8f4d2f9b2db6cc233b835d1ef24f7d71c723f05c /xfa/fde/cfde_txtedtengine.h
parent73b492a5d775c05d8c186c8478d1003edfffd34c (diff)
downloadpdfium-171cb27a720036c48ae3a6176084e880742af0a9.tar.xz
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 <rharrison@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fde/cfde_txtedtengine.h')
-rw-r--r--xfa/fde/cfde_txtedtengine.h20
1 files changed, 8 insertions, 12 deletions
diff --git a/xfa/fde/cfde_txtedtengine.h b/xfa/fde/cfde_txtedtengine.h
index 2a38e4ea81..0bbbbcee89 100644
--- a/xfa/fde/cfde_txtedtengine.h
+++ b/xfa/fde/cfde_txtedtengine.h
@@ -110,16 +110,14 @@ class CFDE_TxtEdtEngine {
int32_t GetCaretRect(CFX_RectF& rtCaret) const;
int32_t GetCaretPos() const;
int32_t SetCaretPos(int32_t nIndex, bool bBefore);
- int32_t MoveCaretPos(FDE_TXTEDTMOVECARET eMoveCaret,
- bool bShift = false,
- bool bCtrl = false);
+ int32_t MoveCaretPos(FDE_TXTEDTMOVECARET eMoveCaret, bool bShift, bool bCtrl);
void Lock();
void Unlock();
bool IsLocked() const;
int32_t Insert(int32_t nStart, const wchar_t* lpText, int32_t nLength);
- int32_t Delete(int32_t nStart, bool bBackspace = false);
- int32_t DeleteRange(int32_t nStart, int32_t nCount = -1);
+ int32_t Delete(int32_t nStart, bool bBackspace);
+ int32_t DeleteRange(int32_t nStart, size_t nCount);
int32_t Replace(int32_t nStart,
int32_t nLength,
const CFX_WideString& wsReplace);
@@ -180,8 +178,8 @@ class CFDE_TxtEdtEngine {
const wchar_t* lpText,
int32_t nLength);
- void Inner_DeleteRange(int32_t nStart, int32_t nCount = -1);
- void DeleteRange_DoRecord(int32_t nStart, int32_t nCount, bool bSel = false);
+ void Inner_DeleteRange(int32_t nStart, int32_t nCount);
+ void DeleteRange_DoRecord(int32_t nStart, int32_t nCount, bool bSel);
void ResetEngine();
void RebuildParagraphs();
void RemoveAllParags();
@@ -190,9 +188,7 @@ class CFDE_TxtEdtEngine {
void UpdatePages();
void UpdateTxtBreak();
- bool ReplaceParagEnd(wchar_t*& lpText,
- int32_t& nLength,
- bool bPreIsCR = false);
+ bool ReplaceParagEnd(wchar_t*& lpText, int32_t& nLength, bool bPreIsCR);
void RecoverParagEnd(CFX_WideString& wsText) const;
int32_t MovePage2Char(int32_t nIndex);
void TextPos2ParagPos(int32_t nIndex, FDE_TXTEDTPARAGPOS& ParagPos) const;
@@ -205,11 +201,11 @@ class CFDE_TxtEdtEngine {
bool MoveHome();
bool MoveEnd();
bool IsFitArea(CFX_WideString& wsText);
- void UpdateCaretRect(int32_t nIndex, bool bBefore = true);
+ void UpdateCaretRect(int32_t nIndex, bool bBefore);
void GetCaretRect(CFX_RectF& rtCaret,
int32_t nPageIndex,
int32_t nCaret,
- bool bBefore = true);
+ bool bBefore);
void UpdateCaretIndex(const CFX_PointF& ptCaret);
bool IsSelect();