diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2017-06-28 10:23:09 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-28 14:20:44 +0200 |
commit | 594331cc811fb9a684b5f1c871b679444b8cd51d (patch) | |
tree | 56a26754e766bf6a8b0dc67bbe9e3597d9b8fd2f /sw | |
parent | 8a6ed98b00cb91dbe5b807051715858a2dc90883 (diff) |
remove default-able copy ctors and copy operators
The implicit defined ctors and operators will copy all members
(and bases).
Since C++11 implicit copy is depreciated if there is a non-default
dtor, keep such copies.
This commit includes only types that had either copy ctor or
copy operator and were found by cppcheck.
Change-Id: I93ee687fb3b3c5884f475a2c6054955cdde57ed7
Reviewed-on: https://gerrit.libreoffice.org/39351
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/doc/tblrwcl.cxx | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sw/source/core/doc/tblrwcl.cxx b/sw/source/core/doc/tblrwcl.cxx index f16e1cde47a8..e6f402cace45 100644 --- a/sw/source/core/doc/tblrwcl.cxx +++ b/sw/source/core/doc/tblrwcl.cxx @@ -87,8 +87,6 @@ struct CpyTabFrame explicit CpyTabFrame( SwTableBoxFormat* pAktFrameFormat ) : pNewFrameFormat( nullptr ) { Value.pFrameFormat = pAktFrameFormat; } - CpyTabFrame& operator=( const CpyTabFrame& ); - bool operator==( const CpyTabFrame& rCpyTabFrame ) const { return (sal_uLong)Value.nSize == (sal_uLong)rCpyTabFrame.Value.nSize; } bool operator<( const CpyTabFrame& rCpyTabFrame ) const @@ -233,13 +231,6 @@ static bool lcl_InsDelSelLine( SwTableLine* pLine, CR_SetLineHeight& rParam, typedef bool (*FN_lcl_SetLineHeight)(SwTableLine*, CR_SetLineHeight&, SwTwips, bool ); -CpyTabFrame& CpyTabFrame::operator=( const CpyTabFrame& rCpyTabFrame ) -{ - pNewFrameFormat = rCpyTabFrame.pNewFrameFormat; - Value = rCpyTabFrame.Value; - return *this; -} - typedef o3tl::sorted_vector<CpyTabFrame> CpyTabFrames; struct CpyPara |