summaryrefslogtreecommitdiff
path: root/fpdfsdk/fxedit/include/fxet_edit.h
diff options
context:
space:
mode:
authorthestig <thestig@chromium.org>2016-06-07 17:53:06 -0700
committerCommit bot <commit-bot@chromium.org>2016-06-07 17:53:06 -0700
commit1cd352e0a4bc19f96df199b0acfa32a344240d5e (patch)
treebe24d7a4bd135c2ab5568148ab318b7bf648edda /fpdfsdk/fxedit/include/fxet_edit.h
parenta4fdfc5ed0e8d2e6acc52cc34eac42c6072f0ccc (diff)
downloadpdfium-1cd352e0a4bc19f96df199b0acfa32a344240d5e.tar.xz
Get rid of NULLs in fpdfsdk/
Review-Url: https://codereview.chromium.org/2031653003
Diffstat (limited to 'fpdfsdk/fxedit/include/fxet_edit.h')
-rw-r--r--fpdfsdk/fxedit/include/fxet_edit.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/fpdfsdk/fxedit/include/fxet_edit.h b/fpdfsdk/fxedit/include/fxet_edit.h
index c7500a05fb..71431de90a 100644
--- a/fpdfsdk/fxedit/include/fxet_edit.h
+++ b/fpdfsdk/fxedit/include/fxet_edit.h
@@ -102,7 +102,7 @@ class CFX_Edit_LineRectArray {
CFX_Edit_LineRect* GetAt(int32_t nIndex) const {
if (nIndex < 0 || nIndex >= m_LineRects.GetSize())
- return NULL;
+ return nullptr;
return m_LineRects.GetAt(nIndex);
}
@@ -138,7 +138,7 @@ class CFX_Edit_RectArray {
CFX_FloatRect* GetAt(int32_t nIndex) const {
if (nIndex < 0 || nIndex >= m_Rects.GetSize())
- return NULL;
+ return nullptr;
return m_Rects.GetAt(nIndex);
}
@@ -570,20 +570,20 @@ class CFX_Edit : public IFX_Edit {
void OnVK_END(FX_BOOL bShift, FX_BOOL bCtrl) override;
void SetText(const FX_WCHAR* text,
int32_t charset = DEFAULT_CHARSET,
- const CPVT_SecProps* pSecProps = NULL,
- const CPVT_WordProps* pWordProps = NULL) override;
+ const CPVT_SecProps* pSecProps = nullptr,
+ const CPVT_WordProps* pWordProps = nullptr) override;
FX_BOOL InsertWord(uint16_t word,
int32_t charset = DEFAULT_CHARSET,
- const CPVT_WordProps* pWordProps = NULL) override;
- FX_BOOL InsertReturn(const CPVT_SecProps* pSecProps = NULL,
- const CPVT_WordProps* pWordProps = NULL) override;
+ const CPVT_WordProps* pWordProps = nullptr) override;
+ FX_BOOL InsertReturn(const CPVT_SecProps* pSecProps = nullptr,
+ const CPVT_WordProps* pWordProps = nullptr) override;
FX_BOOL Backspace() override;
FX_BOOL Delete() override;
FX_BOOL Clear() override;
FX_BOOL InsertText(const FX_WCHAR* text,
int32_t charset = DEFAULT_CHARSET,
- const CPVT_SecProps* pSecProps = NULL,
- const CPVT_WordProps* pWordProps = NULL) override;
+ const CPVT_SecProps* pSecProps = nullptr,
+ const CPVT_WordProps* pWordProps = nullptr) override;
FX_BOOL Redo() override;
FX_BOOL Undo() override;
int32_t WordPlaceToWordIndex(const CPVT_WordPlace& place) const override;
@@ -701,8 +701,8 @@ class CFX_Edit : public IFX_Edit {
inline CFX_FloatRect EditToVT(const CFX_FloatRect& rect) const;
void Refresh(REFRESH_PLAN_E ePlan,
- const CPVT_WordRange* pRange1 = NULL,
- const CPVT_WordRange* pRange2 = NULL);
+ const CPVT_WordRange* pRange1 = nullptr,
+ const CPVT_WordRange* pRange2 = nullptr);
void RefreshPushLineRects(const CPVT_WordRange& wr);
void RefreshPushRandomRects(const CPVT_WordRange& wr);