Index: xfa/fde/cfx_wordbreak.cpp |
diff --git a/xfa/fde/cfx_wordbreak.cpp b/xfa/fde/cfx_wordbreak.cpp |
index 48b45a4e820a07674fdb127a6ffaf08d84607b40..2d37ba1707e9d2fb2ff00355879002d515511bbf 100644 |
--- a/xfa/fde/cfx_wordbreak.cpp |
+++ b/xfa/fde/cfx_wordbreak.cpp |
@@ -8,6 +8,7 @@ |
#include <utility> |
+#include "third_party/base/ptr_util.h" |
#include "xfa/fde/cfx_chariter.h" |
namespace { |
@@ -2788,7 +2789,7 @@ void CFX_WordBreak::Attach(IFX_CharIter* pIter) { |
} |
void CFX_WordBreak::Attach(const CFX_WideString& wsText) { |
- m_pCurIter.reset(new CFX_CharIter(wsText)); |
+ m_pCurIter = pdfium::MakeUnique<CFX_CharIter>(wsText); |
} |
bool CFX_WordBreak::Next(bool bPrev) { |