From 7ae4ac0d083b54da466ccd2f31860667e7751188 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 1 Oct 2016 10:04:17 +0100 Subject: default copy ctor/assignment are sufficient Change-Id: I9076b5705ae213c4170cb313cd5b40b3214e2256 --- sw/inc/pam.hxx | 3 --- sw/source/core/crsr/pam.cxx | 12 ------------ 2 files changed, 15 deletions(-) (limited to 'sw') diff --git a/sw/inc/pam.hxx b/sw/inc/pam.hxx index 2dc78ee5a315..771e753d7b34 100644 --- a/sw/inc/pam.hxx +++ b/sw/inc/pam.hxx @@ -58,9 +58,6 @@ struct SW_DLLPUBLIC SwPosition explicit SwPosition( const SwNode& rNode ); explicit SwPosition( SwContentNode& rNode, const sal_Int32 nOffset = 0 ); - SwPosition( const SwPosition & ); - SwPosition &operator=(const SwPosition &); - /** Returns the document this position is in. diff --git a/sw/source/core/crsr/pam.cxx b/sw/source/core/crsr/pam.cxx index c83361b94778..8c423847d0db 100644 --- a/sw/source/core/crsr/pam.cxx +++ b/sw/source/core/crsr/pam.cxx @@ -69,18 +69,6 @@ SwPosition::SwPosition( SwContentNode & rNode, const sal_Int32 nOffset ) { } -SwPosition::SwPosition( const SwPosition & rPos ) - : nNode( rPos.nNode ), nContent( rPos.nContent ) -{ -} - -SwPosition &SwPosition::operator=(const SwPosition &rPos) -{ - nNode = rPos.nNode; - nContent = rPos.nContent; - return *this; -} - bool SwPosition::operator<(const SwPosition &rPos) const { if( nNode < rPos.nNode ) -- cgit