summaryrefslogtreecommitdiff
path: root/linguistic/source/lngsvcmgr.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-01-16 15:14:20 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-01-17 11:00:06 +0200
commit76f81d58ab0cd701182f2d55281546ecd8b08c2c (patch)
tree98119bfb3cc71260f5bd8579f28b5c34e021b157 /linguistic/source/lngsvcmgr.hxx
parente4d362017ecd6076ab9fd13d9c6b2c5137580500 (diff)
use rtl::Reference in LngSvcMgr
instead of storing both raw pointers and uno::Reference Change-Id: Ie403e1e7a081bc3f91fd25be89c54ddc1d1cadd2
Diffstat (limited to 'linguistic/source/lngsvcmgr.hxx')
-rw-r--r--linguistic/source/lngsvcmgr.hxx25
1 files changed, 7 insertions, 18 deletions
diff --git a/linguistic/source/lngsvcmgr.hxx b/linguistic/source/lngsvcmgr.hxx
index 493e6dd0fd72..348ca0905a0e 100644
--- a/linguistic/source/lngsvcmgr.hxx
+++ b/linguistic/source/lngsvcmgr.hxx
@@ -30,6 +30,7 @@
#include <com/sun/star/util/XModifyBroadcaster.hpp>
#include <com/sun/star/util/XModifyListener.hpp>
#include <unotools/configitem.hxx>
+#include <rtl/ref.hxx>
#include <vcl/timer.hxx>
#include <vcl/idle.hxx>
#include <vector>
@@ -65,19 +66,7 @@ class LngSvcMgr :
{
friend class LngSvcMgrListenerHelper;
- ::comphelper::OInterfaceContainerHelper2 aEvtListeners;
-
- css::uno::Reference<
- css::linguistic2::XSpellChecker > xSpellDsp;
- css::uno::Reference<
- css::linguistic2::XProofreadingIterator > xGrammarDsp;
- css::uno::Reference<
- css::linguistic2::XHyphenator > xHyphDsp;
- css::uno::Reference<
- css::linguistic2::XThesaurus > xThesDsp;
-
- css::uno::Reference<
- css::lang::XEventListener > xListenerHelper;
+ ::comphelper::OInterfaceContainerHelper2 aEvtListeners;
css::uno::Reference<
css::util::XModifyBroadcaster> xMB;
@@ -94,12 +83,12 @@ class LngSvcMgr :
css::uno::Sequence<
css::lang::Locale > aAvailThesLocales;
- SpellCheckerDispatcher * pSpellDsp;
- GrammarCheckingIterator * pGrammarDsp;
- HyphenatorDispatcher * pHyphDsp;
- ThesaurusDispatcher * pThesDsp;
+ rtl::Reference<SpellCheckerDispatcher> mxSpellDsp;
+ rtl::Reference<GrammarCheckingIterator> mxGrammarDsp;
+ rtl::Reference<HyphenatorDispatcher> mxHyphDsp;
+ rtl::Reference<ThesaurusDispatcher> mxThesDsp;
- LngSvcMgrListenerHelper * pListenerHelper;
+ rtl::Reference<LngSvcMgrListenerHelper> mxListenerHelper;
typedef std::vector< std::unique_ptr<SvcInfo> > SvcInfoArray;
SvcInfoArray * pAvailSpellSvcs;