From c9a343935f6c480dcaf0145c2f27db08b4ae01a5 Mon Sep 17 00:00:00 2001 From: Bjoern Michaelsen Date: Sat, 6 Jun 2015 03:26:12 +0200 Subject: use UnoCursorPointer in SwXTextPortion Change-Id: I8628fd1fecb3e2cf54704f9844ff921862da46e5 --- sw/source/core/inc/unoport.hxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sw/source/core/inc/unoport.hxx') diff --git a/sw/source/core/inc/unoport.hxx b/sw/source/core/inc/unoport.hxx index 4e6609725953..f6ee60e3454f 100644 --- a/sw/source/core/inc/unoport.hxx +++ b/sw/source/core/inc/unoport.hxx @@ -114,7 +114,7 @@ private: ::std::unique_ptr< ::com::sun::star::uno::Any > m_pRubyStyle; ::std::unique_ptr< ::com::sun::star::uno::Any > m_pRubyAdjust; ::std::unique_ptr< ::com::sun::star::uno::Any > m_pRubyIsAbove; - std::shared_ptr m_pUnoCursor; + sw::UnoCursorPointer m_pUnoCursor; const SwDepend m_FrameDepend; SwFrameFormat * m_pFrameFormat; @@ -151,8 +151,6 @@ protected: //SwClient virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew) SAL_OVERRIDE; - virtual void SwClientNotify(const SwModify& rModify, const SfxHint& rHint) SAL_OVERRIDE; - public: SwXTextPortion(const SwUnoCrsr* pPortionCrsr, ::com::sun::star::uno::Reference< ::com::sun::star::text::XText > const& rParent, SwTextPortionType eType ); @@ -242,7 +240,7 @@ public: SwTextPortionType GetTextPortionType() const { return m_ePortionType; } SwUnoCrsr* GetCursor() const - {return static_cast(const_cast(GetRegisteredIn()));} + { return const_cast(&(*m_pUnoCursor)); } }; class SwXTextPortionEnumeration -- cgit