From 28549c91b9fb7bdc637466218348b0759e251456 Mon Sep 17 00:00:00 2001 From: Ryan Harrison Date: Tue, 15 Aug 2017 11:29:16 -0400 Subject: Make GetChar & Clone const for IFX_CharIter BUG=pdfium:864 Change-Id: Iab03e1977c859f150452825650afed3520024cca Reviewed-on: https://pdfium-review.googlesource.com/11030 Reviewed-by: dsinclair Commit-Queue: Ryan Harrison --- core/fxcrt/cfx_chariter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/fxcrt/cfx_chariter.cpp') 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 CFX_CharIter::Clone() { +std::unique_ptr CFX_CharIter::Clone() const { auto pIter = pdfium::MakeUnique(m_wsText); pIter->m_nIndex = m_nIndex; return pIter; -- cgit v1.2.3