diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-10-01 10:04:17 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-10-01 10:27:56 +0100 |
commit | 7ae4ac0d083b54da466ccd2f31860667e7751188 (patch) | |
tree | 09d4da6af64c3e6ebb854b430dd4b14690faac95 | |
parent | 450c15a1181ef9aee0bdaa01bae06dd91c86acba (diff) |
default copy ctor/assignment are sufficient
Change-Id: I9076b5705ae213c4170cb313cd5b40b3214e2256
-rw-r--r-- | sw/inc/pam.hxx | 3 | ||||
-rw-r--r-- | sw/source/core/crsr/pam.cxx | 12 |
2 files changed, 0 insertions, 15 deletions
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 ) |