From 2bdfeb0b0973ebb7c4d9c410e22df2a56deef5bc Mon Sep 17 00:00:00 2001 From: Jochen Nitschke Date: Sun, 25 Jun 2017 19:04:47 +0200 Subject: use implicit default copy assignment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- sw/source/core/text/possiz.hxx | 9 --------- 1 file changed, 9 deletions(-) (limited to 'sw') 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()); -- cgit