summaryrefslogtreecommitdiff
path: root/core/fxcrt/ifx_chariter.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-04-19 16:07:21 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-04-19 21:23:25 +0000
commit3c66ea01f5239a7b1a0da75285e0c8048e5cf784 (patch)
tree691729ad6f8924f2fc70dc31f01fafbfdb7ce8a4 /core/fxcrt/ifx_chariter.h
parent4363c8ff37b6e6a98fffe53fff248e61d04f697a (diff)
downloadpdfium-3c66ea01f5239a7b1a0da75285e0c8048e5cf784.tar.xz
Update IFX_CharIter::Clone to return unique_ptr
This Cl converts the Clone method of IFX_CharIter to return a unique_ptr. The usages were all converting to a unique_ptr already. Change-Id: I1ca5ddd03eca8f21d616efb2b92fb27899c43c23 Reviewed-on: https://pdfium-review.googlesource.com/4351 Reviewed-by: Nicolás Peña <npm@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fxcrt/ifx_chariter.h')
-rw-r--r--core/fxcrt/ifx_chariter.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/fxcrt/ifx_chariter.h b/core/fxcrt/ifx_chariter.h
index 4435257cc9..b8e240953a 100644
--- a/core/fxcrt/ifx_chariter.h
+++ b/core/fxcrt/ifx_chariter.h
@@ -7,6 +7,8 @@
#ifndef CORE_FXCRT_IFX_CHARITER_H_
#define CORE_FXCRT_IFX_CHARITER_H_
+#include <memory>
+
#include "core/fxcrt/fx_system.h"
class IFX_CharIter {
@@ -18,7 +20,7 @@ class IFX_CharIter {
virtual void SetAt(int32_t nIndex) = 0;
virtual int32_t GetAt() const = 0;
virtual bool IsEOF(bool bTail = true) const = 0;
- virtual IFX_CharIter* Clone() = 0;
+ virtual std::unique_ptr<IFX_CharIter> Clone() = 0;
};
#endif // CORE_FXCRT_IFX_CHARITER_H_