summaryrefslogtreecommitdiff
path: root/fpdfsdk/fxedit/fxet_list.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-04-24 16:28:07 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-04-25 00:07:29 +0000
commitef002c85521278e3082517297cf60372d7751cb1 (patch)
treebe0148d89603262c1bf11f16621a1c43509759db /fpdfsdk/fxedit/fxet_list.cpp
parent3684a151e76991bc67dd397cba66b0620cc38bae (diff)
downloadpdfium-ef002c85521278e3082517297cf60372d7751cb1.tar.xz
Use fx_extension.h utilities in more places.
Change-Id: Iba1aa793567e69acc3cc1acbd5b9a9f531c80b7a Reviewed-on: https://pdfium-review.googlesource.com/4453 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fpdfsdk/fxedit/fxet_list.cpp')
-rw-r--r--fpdfsdk/fxedit/fxet_list.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/fpdfsdk/fxedit/fxet_list.cpp b/fpdfsdk/fxedit/fxet_list.cpp
index c10b6a205e..c8fef948af 100644
--- a/fpdfsdk/fxedit/fxet_list.cpp
+++ b/fpdfsdk/fxedit/fxet_list.cpp
@@ -10,6 +10,7 @@
#include <utility>
#include "core/fpdfdoc/cpvt_word.h"
+#include "core/fxcrt/fx_extension.h"
#include "fpdfsdk/fxedit/fxet_edit.h"
#include "fpdfsdk/pdfwindow/PWL_ListBox.h"
#include "third_party/base/stl_util.h"
@@ -638,12 +639,6 @@ int32_t CFX_ListCtrl::GetLastSelected() const {
return -1;
}
-wchar_t CFX_ListCtrl::Toupper(wchar_t c) const {
- if ((c >= 'a') && (c <= 'z'))
- c = c - ('a' - 'A');
- return c;
-}
-
int32_t CFX_ListCtrl::FindNext(int32_t nIndex, wchar_t nChar) const {
int32_t nCircleIndex = nIndex;
int32_t sz = pdfium::CollectionSize<int32_t>(m_ListItems);
@@ -653,7 +648,7 @@ int32_t CFX_ListCtrl::FindNext(int32_t nIndex, wchar_t nChar) const {
nCircleIndex = 0;
if (CFX_ListItem* pListItem = m_ListItems[nCircleIndex].get()) {
- if (Toupper(pListItem->GetFirstChar()) == Toupper(nChar))
+ if (FXSYS_toupper(pListItem->GetFirstChar()) == FXSYS_toupper(nChar))
return nCircleIndex;
}
}