summaryrefslogtreecommitdiff
path: root/core/fxcrt/cfx_chariter.cpp
diff options
context:
space:
mode:
authorRyan Harrison <rharrison@chromium.org>2017-08-15 11:29:16 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-08-15 15:54:21 +0000
commit28549c91b9fb7bdc637466218348b0759e251456 (patch)
tree7d3b26929d625a61b55afaecd9aa874b9c9f10a4 /core/fxcrt/cfx_chariter.cpp
parent29fd935aab369d210c2a6cc2682e8aaac56d4d36 (diff)
downloadpdfium-28549c91b9fb7bdc637466218348b0759e251456.tar.xz
Make GetChar & Clone const for IFX_CharIter
BUG=pdfium:864 Change-Id: Iab03e1977c859f150452825650afed3520024cca Reviewed-on: https://pdfium-review.googlesource.com/11030 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'core/fxcrt/cfx_chariter.cpp')
-rw-r--r--core/fxcrt/cfx_chariter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fxcrt/cfx_chariter.cpp b/core/fxcrt/cfx_chariter.cpp
index d26dd2df8f..db94fb09f4 100644
--- a/core/fxcrt/cfx_chariter.cpp
+++ b/core/fxcrt/cfx_chariter.cpp
@@ -28,7 +28,7 @@ bool CFX_CharIter::Next(bool bPrev) {
return true;
}
-wchar_t CFX_CharIter::GetChar() {
+wchar_t CFX_CharIter::GetChar() const {
return m_wsText[m_nIndex];
}
@@ -46,7 +46,7 @@ bool CFX_CharIter::IsEOF(bool bTail) const {
return bTail ? (m_nIndex + 1 == m_wsText.GetLength()) : (m_nIndex == 0);
}
-std::unique_ptr<IFX_CharIter> CFX_CharIter::Clone() {
+std::unique_ptr<IFX_CharIter> CFX_CharIter::Clone() const {
auto pIter = pdfium::MakeUnique<CFX_CharIter>(m_wsText);
pIter->m_nIndex = m_nIndex;
return pIter;