summaryrefslogtreecommitdiff
path: root/svx/inc
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2019-08-22 15:42:36 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2019-08-23 11:48:53 +0200
commit63dfd069b3a957361881c12ccba38c5a23b9a42f (patch)
treee7a9bd1027b19f44a7c58ea9c445ded435c838bc /svx/inc
parent61ed17cafc90d9b4303b52260f729638eed107c7 (diff)
Mark move ctors/assignments noexcept
This should enable using move semantics where possible e.g. in standard containers. According to https://en.cppreference.com/w/cpp/language/move_constructor: To make strong exception guarantee possible, user-defined move constructors should not throw exceptions. For example, std::vector relies on std::move_if_noexcept to choose between move and copy when the elements need to be relocated. Change-Id: I6e1e1cdd5cd430b139ffa2fa7031fb0bb625decb Reviewed-on: https://gerrit.libreoffice.org/77957 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'svx/inc')
-rw-r--r--svx/inc/sdr/attribute/sdrformtextoutlineattribute.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/inc/sdr/attribute/sdrformtextoutlineattribute.hxx b/svx/inc/sdr/attribute/sdrformtextoutlineattribute.hxx
index 924967a1be31..dee94cd72aca 100644
--- a/svx/inc/sdr/attribute/sdrformtextoutlineattribute.hxx
+++ b/svx/inc/sdr/attribute/sdrformtextoutlineattribute.hxx
@@ -53,7 +53,7 @@ namespace drawinglayer
SdrFormTextOutlineAttribute();
SdrFormTextOutlineAttribute(const SdrFormTextOutlineAttribute& rCandidate);
SdrFormTextOutlineAttribute& operator=(const SdrFormTextOutlineAttribute& rCandidate);
- SdrFormTextOutlineAttribute& operator=(SdrFormTextOutlineAttribute&& rCandidate);
+ SdrFormTextOutlineAttribute& operator=(SdrFormTextOutlineAttribute&& rCandidate) noexcept;
~SdrFormTextOutlineAttribute();
// checks if the incarnation is default constructed