[Libreoffice-commits] core.git: editeng/source include/editeng

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Tue Jun 1 14:27:06 UTC 2021


 editeng/source/items/numitem.cxx |    4 ++--
 include/editeng/numitem.hxx      |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

New commits:
commit fca96bf4b21ca47a98a2bd0114f7c22935acc54b
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Tue Jun 1 13:58:17 2021 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Tue Jun 1 16:26:08 2021 +0200

    loplugin:noexceptmove
    
    (not sure exactly why this started to only hit me now on macOS against LLVM 13
    trunk libc++)
    
    Change-Id: Ib2ea5b52061a870a5eaa4e5c680d19b87831b87c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116536
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/editeng/source/items/numitem.cxx b/editeng/source/items/numitem.cxx
index ba935384eb31..2dd03a1877cf 100644
--- a/editeng/source/items/numitem.cxx
+++ b/editeng/source/items/numitem.cxx
@@ -638,7 +638,7 @@ SvxNumRule::SvxNumRule(const SvxNumRule& rCopy)
     }
 }
 
-SvxNumRule::SvxNumRule(SvxNumRule&& rCopy)
+SvxNumRule::SvxNumRule(SvxNumRule&& rCopy) noexcept
 {
     ++nRefCount;
     nLevelCount          = rCopy.nLevelCount         ;
@@ -774,7 +774,7 @@ SvxNumRule& SvxNumRule::operator=( const SvxNumRule& rCopy )
     return *this;
 }
 
-SvxNumRule& SvxNumRule::operator=( SvxNumRule&& rCopy )
+SvxNumRule& SvxNumRule::operator=( SvxNumRule&& rCopy ) noexcept
 {
     if (this != &rCopy)
     {
diff --git a/include/editeng/numitem.hxx b/include/editeng/numitem.hxx
index 8b27c76c7dd1..b4b9e030fb2d 100644
--- a/include/editeng/numitem.hxx
+++ b/include/editeng/numitem.hxx
@@ -266,7 +266,7 @@ public:
                         eDefaultNumberFormatPositionAndSpaceMode
                                 = SvxNumberFormat::LABEL_WIDTH_AND_POSITION );
     SvxNumRule(const SvxNumRule& rCopy);
-    SvxNumRule(SvxNumRule&&);
+    SvxNumRule(SvxNumRule&&) noexcept;
     SvxNumRule(SvStream &rStream);
     ~SvxNumRule();
 
@@ -274,7 +274,7 @@ public:
     bool                    operator!=( const SvxNumRule& rRule ) const {return !(*this == rRule);}
 
     SvxNumRule&             operator=( const SvxNumRule&  );
-    SvxNumRule&             operator=( SvxNumRule&&  );
+    SvxNumRule&             operator=( SvxNumRule&&  ) noexcept;
 
     void                    Store(SvStream &rStream);
     void                    dumpAsXml(xmlTextWriterPtr pWriter) const;


More information about the Libreoffice-commits mailing list