summaryrefslogtreecommitdiff
path: root/xfa/fde/cfde_txtedtbuf.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-03-13 16:43:37 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-03-14 14:14:51 +0000
commit812e96c2b4c5908a1979da5e27cdcecda0d1dfc9 (patch)
treef0b0607f6b757eb22237527215094bd87b5d03ba /xfa/fde/cfde_txtedtbuf.h
parent893822aa5b6254591f8e80fbffcbb4fa6ad849aa (diff)
downloadpdfium-812e96c2b4c5908a1979da5e27cdcecda0d1dfc9.tar.xz
Replace FX_CHAR and FX_WCHAR with underlying types.
Change-Id: I96e0a20d66b9184d22f64d8e4ce0dadd5a78c1e8 Reviewed-on: https://pdfium-review.googlesource.com/2967 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa/fde/cfde_txtedtbuf.h')
-rw-r--r--xfa/fde/cfde_txtedtbuf.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/xfa/fde/cfde_txtedtbuf.h b/xfa/fde/cfde_txtedtbuf.h
index 9eeee5632e..6a20ae0de1 100644
--- a/xfa/fde/cfde_txtedtbuf.h
+++ b/xfa/fde/cfde_txtedtbuf.h
@@ -21,11 +21,11 @@ class CFDE_TxtEdtBuf {
public:
class Iterator : public IFX_CharIter {
public:
- explicit Iterator(CFDE_TxtEdtBuf* pBuf, FX_WCHAR wcAlias = 0);
+ explicit Iterator(CFDE_TxtEdtBuf* pBuf, wchar_t wcAlias = 0);
~Iterator() override;
bool Next(bool bPrev = false) override;
- FX_WCHAR GetChar() override;
+ wchar_t GetChar() override;
void SetAt(int32_t nIndex) override;
int32_t GetAt() const override;
@@ -38,7 +38,7 @@ class CFDE_TxtEdtBuf {
int32_t m_nCurChunk;
int32_t m_nCurIndex;
int32_t m_nIndex;
- FX_WCHAR m_Alias;
+ wchar_t m_Alias;
};
CFDE_TxtEdtBuf();
@@ -50,10 +50,10 @@ class CFDE_TxtEdtBuf {
void SetText(const CFX_WideString& wsText);
CFX_WideString GetText() const;
- FX_WCHAR GetCharByIndex(int32_t nIndex) const;
+ wchar_t GetCharByIndex(int32_t nIndex) const;
CFX_WideString GetRange(int32_t nBegin, int32_t nCount) const;
- void Insert(int32_t nPos, const FX_WCHAR* lpText, int32_t nLength);
+ void Insert(int32_t nPos, const wchar_t* lpText, int32_t nLength);
void Delete(int32_t nIndex, int32_t nLength);
void Clear(bool bRelease);
@@ -67,7 +67,7 @@ class CFDE_TxtEdtBuf {
~ChunkHeader();
int32_t nUsed;
- std::unique_ptr<FX_WCHAR, FxFreeDeleter> wChars;
+ std::unique_ptr<wchar_t, FxFreeDeleter> wChars;
};
void SetChunkSizeForTesting(size_t size);