diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-06-06 03:38:49 +0200 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-06-09 12:55:06 +0200 |
commit | a755edf0fba671d53659a4c5f03f549506edd65c (patch) | |
tree | 42c65e02baf721a1d3d4015d616b74913047c64b /sw/source/core/inc/unoport.hxx | |
parent | c9a343935f6c480dcaf0145c2f27db08b4ae01a5 (diff) |
use new UnoCursorPointer in SwXTextPortionEnumeration
Change-Id: If6b64c92d4f6f786767802cc046ccd96bd8367cb
Diffstat (limited to 'sw/source/core/inc/unoport.hxx')
-rw-r--r-- | sw/source/core/inc/unoport.hxx | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sw/source/core/inc/unoport.hxx b/sw/source/core/inc/unoport.hxx index f6ee60e3454f..cc323859e322 100644 --- a/sw/source/core/inc/unoport.hxx +++ b/sw/source/core/inc/unoport.hxx @@ -249,13 +249,12 @@ class SwXTextPortionEnumeration , ::com::sun::star::lang::XServiceInfo , ::com::sun::star::lang::XUnoTunnel > - , public SwClient { TextRangeList_t m_Portions; // contains all portions, filled by ctor - std::shared_ptr<SwUnoCrsr> m_pUnoCrsr; + sw::UnoCursorPointer m_pUnoCrsr; - SwUnoCrsr* GetCursor() const - {return static_cast<SwUnoCrsr*>(const_cast<SwModify*>(GetRegisteredIn()));} + SwUnoCrsr* GetCursor() const + {return const_cast<SwUnoCrsr*>(&(*m_pUnoCrsr));} protected: virtual ~SwXTextPortionEnumeration(); @@ -292,10 +291,6 @@ public: virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE; -protected: - //SwClient - virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew) SAL_OVERRIDE; - virtual void SwClientNotify(const SwModify&, const SfxHint&) SAL_OVERRIDE; }; class SwXRedlinePortion : public SwXTextPortion |