diff options
author | Andrew Weintraub <asweintraub@google.com> | 2017-09-07 18:15:45 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-09-07 22:31:52 +0000 |
commit | acee2a8af3b54cf8c3e3161440bda11df826dcf1 (patch) | |
tree | 6deadbacab3dd50e1a4686f7c3a6b16ff26799eb /core/fxcrt/xml/cfx_xmlinstruction.cpp | |
parent | 6f9b1d7eff38d503de231fc7260f012af774ce62 (diff) | |
download | pdfium-acee2a8af3b54cf8c3e3161440bda11df826dcf1.tar.xz |
Use std::move so this code compiles properly using gcc.chromium/3210chromium/3209
R=dsinclair@chromium.org
Bug:
Change-Id: I34f9498f4e5942c5b10ab2848509de935882321d
Reviewed-on: https://pdfium-review.googlesource.com/13470
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fxcrt/xml/cfx_xmlinstruction.cpp')
-rw-r--r-- | core/fxcrt/xml/cfx_xmlinstruction.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/fxcrt/xml/cfx_xmlinstruction.cpp b/core/fxcrt/xml/cfx_xmlinstruction.cpp index 6886172ee2..3c7deda92a 100644 --- a/core/fxcrt/xml/cfx_xmlinstruction.cpp +++ b/core/fxcrt/xml/cfx_xmlinstruction.cpp @@ -6,6 +6,8 @@ #include "core/fxcrt/xml/cfx_xmlinstruction.h" +#include <utility> + #include "core/fxcrt/fx_extension.h" #include "third_party/base/ptr_util.h" #include "third_party/base/stl_util.h" @@ -23,7 +25,7 @@ std::unique_ptr<CFX_XMLNode> CFX_XMLInstruction::Clone() { auto pClone = pdfium::MakeUnique<CFX_XMLInstruction>(GetName()); pClone->SetAttributes(GetAttributes()); pClone->m_TargetData = m_TargetData; - return pClone; + return std::move(pClone); } void CFX_XMLInstruction::AppendData(const CFX_WideString& wsData) { |