| Index: fpdfsdk/src/fxedit/fxet_list.cpp
|
| diff --git a/fpdfsdk/src/fxedit/fxet_list.cpp b/fpdfsdk/src/fxedit/fxet_list.cpp
|
| index 70dc8d52624895392c05b6b7b53b92857eb2d1fe..ff4723e5149e8a57adf6653b6d8de0076cdee0f7 100644
|
| --- a/fpdfsdk/src/fxedit/fxet_list.cpp
|
| +++ b/fpdfsdk/src/fxedit/fxet_list.cpp
|
| @@ -128,12 +128,11 @@ void CFX_List::SetFontSize(FX_FLOAT fFontSize) {
|
| }
|
|
|
| void CFX_List::AddItem(const FX_WCHAR* str) {
|
| - if (CFX_ListItem* pListItem = new CFX_ListItem()) {
|
| - pListItem->SetFontMap(m_pFontMap);
|
| - pListItem->SetFontSize(m_fFontSize);
|
| - pListItem->SetText(str);
|
| - m_aListItems.Add(pListItem);
|
| - }
|
| + CFX_ListItem* pListItem = new CFX_ListItem();
|
| + pListItem->SetFontMap(m_pFontMap);
|
| + pListItem->SetFontSize(m_fFontSize);
|
| + pListItem->SetText(str);
|
| + m_aListItems.Add(pListItem);
|
| }
|
|
|
| void CFX_List::ReArrange(int32_t nItemIndex) {
|
|
|