summaryrefslogtreecommitdiff
path: root/core/fxcrt/cfx_maybe_owned.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2017-03-28 14:09:43 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-03-28 21:28:39 +0000
commit3bb57514867a2bd10ba535e0b06de566a58d8085 (patch)
tree8c3019986ee23a0bec05955f861cee3b73b3770d /core/fxcrt/cfx_maybe_owned.h
parent022ded02d2c23a8d043bbcb3d3f37dab12636759 (diff)
downloadpdfium-3bb57514867a2bd10ba535e0b06de566a58d8085.tar.xz
Ensure that CFX_RetainPtr move ctor is used by std::vector.
Add a test for one of our types that fails unless this is the case. Mark all our other move ctors as |noexcept|. Change-Id: Ib106f219183d5abf94504af420a43c94b8f40e22 Reviewed-on: https://pdfium-review.googlesource.com/3251 Commit-Queue: Tom Sepez <tsepez@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fxcrt/cfx_maybe_owned.h')
-rw-r--r--core/fxcrt/cfx_maybe_owned.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxcrt/cfx_maybe_owned.h b/core/fxcrt/cfx_maybe_owned.h
index 92b1c1c242..8b08d9be37 100644
--- a/core/fxcrt/cfx_maybe_owned.h
+++ b/core/fxcrt/cfx_maybe_owned.h
@@ -25,7 +25,7 @@ class CFX_MaybeOwned {
: m_pOwnedObj(std::move(ptr)), m_pObj(m_pOwnedObj.get()) {}
CFX_MaybeOwned(const CFX_MaybeOwned& that) = delete;
- CFX_MaybeOwned(CFX_MaybeOwned&& that)
+ CFX_MaybeOwned(CFX_MaybeOwned&& that) noexcept
: m_pOwnedObj(that.m_pOwnedObj.release()), m_pObj(that.m_pObj) {
that.m_pObj = nullptr;
}