diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2014-12-03 16:14:39 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2014-12-04 01:09:32 +0100 |
commit | 001808fdfc50fb57bf442a100adda78b88abd8e4 (patch) | |
tree | c174cd0e713c127384e294a1b37790140b37695c /sw/source/core/crsr/crsrsh.cxx | |
parent | 582e78ab7c308409476d55f55213a14d9dd4b698 (diff) |
unnecessary cast
Change-Id: I50dc6f95df5c3cd1743be5ec5151b34e8abcf582
Diffstat (limited to 'sw/source/core/crsr/crsrsh.cxx')
-rw-r--r-- | sw/source/core/crsr/crsrsh.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/crsr/crsrsh.cxx b/sw/source/core/crsr/crsrsh.cxx index f8065dd266ab..02d096fdd5b8 100644 --- a/sw/source/core/crsr/crsrsh.cxx +++ b/sw/source/core/crsr/crsrsh.cxx @@ -3181,7 +3181,7 @@ void SwCrsrShell::SetSelection( const SwPaM& rCrsr ) } if(rCrsr.GetNext() != &rCrsr) { - const SwPaM *_pStartCrsr = static_cast<SwPaM*>(rCrsr.GetNext()); + const SwPaM *_pStartCrsr = rCrsr.GetNext(); do { SwPaM* pCurrentCrsr = CreateCrsr(); @@ -3191,7 +3191,7 @@ void SwCrsrShell::SetSelection( const SwPaM& rCrsr ) pCurrentCrsr->SetMark(); *pCurrentCrsr->GetMark() = *_pStartCrsr->GetMark(); } - } while( (_pStartCrsr = static_cast<SwPaM *>(_pStartCrsr->GetNext())) != &rCrsr ); + } while( (_pStartCrsr = _pStartCrsr->GetNext()) != &rCrsr ); } EndAction(); } |