diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-01-10 16:35:58 -0500 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-01-10 21:50:44 +0000 |
commit | 0e6438e40a95702edb8327286c8253aa269c9826 (patch) | |
tree | 5d3b07277b5fa4a1fb96a9d2a23108a3d02bdc9e /xfa/fde/cfde_txtedtbufiter.h | |
parent | 6c0c48227aa024aa6e188ed7adf4d7c3d410cff9 (diff) | |
download | pdfium-0e6438e40a95702edb8327286c8253aa269c9826.tar.xz |
Remove custom allocator from CFDE_TxtEdtBuf.
This CL removes the custom allocator from CFDE_TxtEdtBuf and uses
std::vector<std::unique_ptr>> instead.
The Iterator code has been made an inner class of the buffer and rename to
CFDE_TxtEdtBuf::Iterator instead of CFDE_TxtEdtBufIter.
Change-Id: Ied8e844dea700e0ef37087f0d3fad4882d9eada1
Reviewed-on: https://pdfium-review.googlesource.com/2159
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa/fde/cfde_txtedtbufiter.h')
-rw-r--r-- | xfa/fde/cfde_txtedtbufiter.h | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/xfa/fde/cfde_txtedtbufiter.h b/xfa/fde/cfde_txtedtbufiter.h deleted file mode 100644 index c536aafc82..0000000000 --- a/xfa/fde/cfde_txtedtbufiter.h +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2016 PDFium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com - -#ifndef XFA_FDE_CFDE_TXTEDTBUFITER_H_ -#define XFA_FDE_CFDE_TXTEDTBUFITER_H_ - -#include "core/fxcrt/fx_system.h" -#include "xfa/fde/ifx_chariter.h" - -class CFDE_TxtEdtBuf; - -class CFDE_TxtEdtBufIter : public IFX_CharIter { - public: - explicit CFDE_TxtEdtBufIter(CFDE_TxtEdtBuf* pBuf, FX_WCHAR wcAlias = 0); - ~CFDE_TxtEdtBufIter() override; - - bool Next(bool bPrev = false) override; - FX_WCHAR GetChar() override; - void SetAt(int32_t nIndex) override; - int32_t GetAt() const override; - bool IsEOF(bool bTail = true) const override; - IFX_CharIter* Clone() override; - - private: - CFDE_TxtEdtBuf* m_pBuf; - int32_t m_nCurChunk; - int32_t m_nCurIndex; - int32_t m_nIndex; - FX_WCHAR m_Alias; -}; - -#endif // XFA_FDE_CFDE_TXTEDTBUFITER_H_ |