include/vcl/glyphitem.hxx | 4 ++-- vcl/source/gdi/impglyphitem.cxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
New commits: commit 0111565f560a4978ee664403ba86af1e72a2ba05 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Tue May 11 11:47:36 2021 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Tue May 11 13:16:34 2021 +0200 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.gran...@collabora.co.uk> 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) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits