diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-11 11:47:36 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-11 13:16:34 +0200 |
commit | 0111565f560a4978ee664403ba86af1e72a2ba05 (patch) | |
tree | ea6e951aeec9921e7bfce28b528986292bff185d | |
parent | 5ed6aae8b572fd2b7623454acbb1de791f166c45 (diff) |
loplugin:noexceptmove
after
commit adfd91d24678053b9a1475ad6985eb1fc548706a
Date: Mon May 10 20:17:11 2021 +0200
fix leak in SalLayoutGlyphs
Change-Id: I495106d9930ce6f2dad8e62fd89bc2970f747088
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115392
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | include/vcl/glyphitem.hxx | 4 | ||||
-rw-r--r-- | vcl/source/gdi/impglyphitem.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/vcl/glyphitem.hxx b/include/vcl/glyphitem.hxx index 68f89701b2c3..6ca2de170561 100644 --- a/include/vcl/glyphitem.hxx +++ b/include/vcl/glyphitem.hxx @@ -41,11 +41,11 @@ class VCL_DLLPUBLIC SalLayoutGlyphs final public: SalLayoutGlyphs(); SalLayoutGlyphs(const SalLayoutGlyphs&) = delete; - SalLayoutGlyphs(SalLayoutGlyphs&&); + SalLayoutGlyphs(SalLayoutGlyphs&&) noexcept; ~SalLayoutGlyphs(); SalLayoutGlyphs& operator=(const SalLayoutGlyphs&) = delete; - SalLayoutGlyphs& operator=(SalLayoutGlyphs&&); + SalLayoutGlyphs& operator=(SalLayoutGlyphs&&) noexcept; SalLayoutGlyphsImpl* Impl(unsigned int nLevel) const; void AppendImpl(SalLayoutGlyphsImpl* pImpl); diff --git a/vcl/source/gdi/impglyphitem.cxx b/vcl/source/gdi/impglyphitem.cxx index e9d5e699356c..06dbaf6c5f32 100644 --- a/vcl/source/gdi/impglyphitem.cxx +++ b/vcl/source/gdi/impglyphitem.cxx @@ -27,13 +27,13 @@ SalLayoutGlyphs::SalLayoutGlyphs() {} SalLayoutGlyphs::~SalLayoutGlyphs() {} -SalLayoutGlyphs::SalLayoutGlyphs(SalLayoutGlyphs&& rOther) +SalLayoutGlyphs::SalLayoutGlyphs(SalLayoutGlyphs&& rOther) noexcept { std::swap(m_pImpl, rOther.m_pImpl); std::swap(m_pExtraImpls, rOther.m_pExtraImpls); } -SalLayoutGlyphs& SalLayoutGlyphs::operator=(SalLayoutGlyphs&& rOther) +SalLayoutGlyphs& SalLayoutGlyphs::operator=(SalLayoutGlyphs&& rOther) noexcept { if (this != &rOther) { |