diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-08-17 20:49:49 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-08-20 16:40:10 +0200 |
commit | 3426685cc2b45cd795975572ae6cbfa58658bab7 (patch) | |
tree | b7cb0e1269cada1675f3fdefac0d4133d2fd5a81 /sw/inc/unocoll.hxx | |
parent | 37ea2c99b9374f956d2a73bf1c085f2b47d53add (diff) |
i#105557: thread-safe caching of SwXTextTable instances
Add factory function SwXTextTable::CreateXTextTable that uses
the WeakReference SwFrmFmt::m_wXObject to cache the instance in
a thread-safe way.
Change-Id: I88939e2586d104193184eea43b466f2cbeb71d6f
Diffstat (limited to 'sw/inc/unocoll.hxx')
-rw-r--r-- | sw/inc/unocoll.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/inc/unocoll.hxx b/sw/inc/unocoll.hxx index 5c4caef407a9..eb55c8116f84 100644 --- a/sw/inc/unocoll.hxx +++ b/sw/inc/unocoll.hxx @@ -295,7 +295,7 @@ public: virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE; virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE; - static ::com::sun::star::text::XTextTable* GetObject( SwFrmFmt& rFmt ); + static css::uno::Reference<css::text::XTextTable> GetObject(SwFrmFmt& rFmt); }; typedef |