diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-09 14:06:09 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-09 14:06:09 +0200 |
commit | 3eef75bd9d18ed39e93289f8b8f23c269ed0c385 (patch) | |
tree | 5d09dc1a1e8206aaa9f10618b793e13511e78b2f /sw/source/core/inc/unoport.hxx | |
parent | bd3460e951a86e18ef0585c5dd68e6fda9fa3d6c (diff) |
lplugin:redundantcast
Change-Id: I96e7dfddebcefa58f01ba743000999fbd729e538
Diffstat (limited to 'sw/source/core/inc/unoport.hxx')
-rw-r--r-- | sw/source/core/inc/unoport.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/inc/unoport.hxx b/sw/source/core/inc/unoport.hxx index cc323859e322..b644aea996f6 100644 --- a/sw/source/core/inc/unoport.hxx +++ b/sw/source/core/inc/unoport.hxx @@ -240,7 +240,7 @@ public: SwTextPortionType GetTextPortionType() const { return m_ePortionType; } SwUnoCrsr* GetCursor() const - { return const_cast<SwUnoCrsr*>(&(*m_pUnoCursor)); } + { return &(*m_pUnoCursor); } }; class SwXTextPortionEnumeration @@ -254,7 +254,7 @@ class SwXTextPortionEnumeration sw::UnoCursorPointer m_pUnoCrsr; SwUnoCrsr* GetCursor() const - {return const_cast<SwUnoCrsr*>(&(*m_pUnoCrsr));} + {return &(*m_pUnoCrsr);} protected: virtual ~SwXTextPortionEnumeration(); |