[Libreoffice-commits] core.git: sw/source

Jochen Nitschke j.nitschke+logerrit at ok.de
Mon Jun 26 08:05:44 UTC 2017


 sw/source/core/text/possiz.hxx |    9 ---------
 1 file changed, 9 deletions(-)

New commits:
commit 2bdfeb0b0973ebb7c4d9c410e22df2a56deef5bc
Author: Jochen Nitschke <j.nitschke+logerrit at ok.de>
Date:   Sun Jun 25 19:04:47 2017 +0200

    use implicit default copy assignment
    
    I guess Coverity complained that there was a copy assignment operator
    but no copy ctor, move assignment and move ctor defined.
    
    Change-Id: I10641c9f403e609406b2a1420b22abbfc9dbc6fc
    Reviewed-on: https://gerrit.libreoffice.org/39240
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sw/source/core/text/possiz.hxx b/sw/source/core/text/possiz.hxx
index e256494911e3..eaad3597f460 100644
--- a/sw/source/core/text/possiz.hxx
+++ b/sw/source/core/text/possiz.hxx
@@ -40,9 +40,6 @@ public:
     }
 #if defined(__COVERITY__)
     ~SwPosSize() COVERITY_NOEXCEPT_FALSE {}
-    SwPosSize(const SwPosSize&) = default;
-    SwPosSize(SwPosSize&&) = default;
-    SwPosSize& operator=(SwPosSize&&) = default;
 #endif
     sal_uInt16 Height() const { return nHeight; }
     void Height( const sal_uInt16 nNew ) { nHeight = nNew; }
@@ -59,12 +56,6 @@ public:
         nHeight = sal_uInt16(rSize.Width());
         nWidth = sal_uInt16(rSize.Height());
     }
-    SwPosSize& operator=(const SwPosSize &rSize )
-    {
-        nWidth  = rSize.Width();
-        nHeight = rSize.Height();
-        return *this;
-    }
     SwPosSize& operator=( const Size &rSize )
     {
         nWidth  = sal_uInt16(rSize.Width());


More information about the Libreoffice-commits mailing list