sw/source/core/inc/unoport.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 3eef75bd9d18ed39e93289f8b8f23c269ed0c385 Author: Stephan Bergmann <sberg...@redhat.com> Date: Tue Jun 9 14:06:09 2015 +0200 lplugin:redundantcast Change-Id: I96e7dfddebcefa58f01ba743000999fbd729e538 diff --git a/sw/source/core/inc/unoport.hxx b/sw/source/core/inc/unoport.hxx index cc32385..b644aea 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(); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits