summaryrefslogtreecommitdiff
path: root/fpdfsdk/fxedit/fxet_list.cpp
diff options
context:
space:
mode:
authorthestig <thestig@chromium.org>2016-05-12 21:56:43 -0700
committerCommit bot <commit-bot@chromium.org>2016-05-12 21:56:43 -0700
commit594b20b485046c954b68734e63e8d2c93fbe4ef5 (patch)
treec20f6447c239d49848fea421fd497f23e41edbe3 /fpdfsdk/fxedit/fxet_list.cpp
parentf6d9a61af218b7acc1161ae231b16765ca10b526 (diff)
downloadpdfium-594b20b485046c954b68734e63e8d2c93fbe4ef5.tar.xz
Fix some misc nits.
These were left over from after I broke a big "things that never return NULL" CL up into smaller ones. Review-Url: https://codereview.chromium.org/1960043003
Diffstat (limited to 'fpdfsdk/fxedit/fxet_list.cpp')
-rw-r--r--fpdfsdk/fxedit/fxet_list.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/fpdfsdk/fxedit/fxet_list.cpp b/fpdfsdk/fxedit/fxet_list.cpp
index 639569898e..383b84f27f 100644
--- a/fpdfsdk/fxedit/fxet_list.cpp
+++ b/fpdfsdk/fxedit/fxet_list.cpp
@@ -63,12 +63,9 @@ FX_FLOAT CFX_ListItem::GetItemHeight() const {
uint16_t CFX_ListItem::GetFirstChar() const {
CPVT_Word word;
-
- if (IFX_Edit_Iterator* pIterator = GetIterator()) {
- pIterator->SetAt(1);
- pIterator->GetWord(word);
- }
-
+ IFX_Edit_Iterator* pIterator = GetIterator();
+ pIterator->SetAt(1);
+ pIterator->GetWord(word);
return word.Word;
}