summaryrefslogtreecommitdiff
path: root/lingucomponent/source/spellcheck
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-08 16:26:18 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-08 16:26:18 +0200
commite12fa69f6eba31ffef4c2ed848ee5a91723df094 (patch)
tree566370f09df75e5a1249345126671f2d1918ee5d /lingucomponent/source/spellcheck
parentb2f490e8627fd31d8f5e48708a898c9f997a4676 (diff)
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: I617d55415aee923d0734f3f3b74948b26132611b
Diffstat (limited to 'lingucomponent/source/spellcheck')
-rw-r--r--lingucomponent/source/spellcheck/macosxspell/macspellimp.mm8
-rw-r--r--lingucomponent/source/spellcheck/spell/sspellimp.cxx8
2 files changed, 8 insertions, 8 deletions
diff --git a/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm b/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
index 410464195c9d..20e9e52d3ec2 100644
--- a/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
+++ b/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
@@ -86,7 +86,7 @@ PropertyHelper_Spell & MacSpellChecker::GetPropHelper_Impl()
{
Reference< XLinguProperties > xPropSet( GetLinguProperties(), UNO_QUERY );
- pPropHelper = new PropertyHelper_Spell( (XSpellChecker *) this, xPropSet );
+ pPropHelper = new PropertyHelper_Spell( static_cast<XSpellChecker *>(this), xPropSet );
xPropHelper = pPropHelper;
pPropHelper->AddAsPropListener(); //! after a reference is established
}
@@ -407,7 +407,7 @@ Reference< XInterface > SAL_CALL MacSpellChecker_CreateInstance(
throw(Exception)
{
- Reference< XInterface > xService = (cppu::OWeakObject*) new MacSpellChecker;
+ Reference< XInterface > xService = static_cast<cppu::OWeakObject*>(new MacSpellChecker);
return xService;
}
@@ -473,7 +473,7 @@ void SAL_CALL
//! And the reference to the UNO-functions while increasing
//! the ref-count and will implicitly free the memory
//! when the object is not longer used.
- pPropHelper = new PropertyHelper_Spell( (XSpellChecker *) this, xPropSet );
+ pPropHelper = new PropertyHelper_Spell( static_cast<XSpellChecker *>(this), xPropSet );
xPropHelper = pPropHelper;
pPropHelper->AddAsPropListener(); //! after a reference is established
}
@@ -493,7 +493,7 @@ void SAL_CALL
if (!bDisposing)
{
bDisposing = true;
- EventObject aEvtObj( (XSpellChecker *) this );
+ EventObject aEvtObj( static_cast<XSpellChecker *>(this) );
aEvtListeners.disposeAndClear( aEvtObj );
}
}
diff --git a/lingucomponent/source/spellcheck/spell/sspellimp.cxx b/lingucomponent/source/spellcheck/spell/sspellimp.cxx
index a27c9e06a4ef..acb0a99ae3f1 100644
--- a/lingucomponent/source/spellcheck/spell/sspellimp.cxx
+++ b/lingucomponent/source/spellcheck/spell/sspellimp.cxx
@@ -96,7 +96,7 @@ PropertyHelper_Spelling & SpellChecker::GetPropHelper_Impl()
{
Reference< XLinguProperties > xPropSet( GetLinguProperties(), UNO_QUERY );
- pPropHelper = new PropertyHelper_Spelling( (XSpellChecker *) this, xPropSet );
+ pPropHelper = new PropertyHelper_Spelling( static_cast<XSpellChecker *>(this), xPropSet );
pPropHelper->AddAsPropListener(); //! after a reference is established
}
return *pPropHelper;
@@ -506,7 +506,7 @@ Reference< XInterface > SAL_CALL SpellChecker_CreateInstance(
throw(Exception)
{
- Reference< XInterface > xService = (cppu::OWeakObject*) new SpellChecker;
+ Reference< XInterface > xService = static_cast<cppu::OWeakObject*>(new SpellChecker);
return xService;
}
@@ -563,7 +563,7 @@ void SAL_CALL SpellChecker::initialize( const Sequence< Any >& rArguments )
//! And the reference to the UNO-functions while increasing
//! the ref-count and will implicitly free the memory
//! when the object is not longer used.
- pPropHelper = new PropertyHelper_Spelling( (XSpellChecker *) this, xPropSet );
+ pPropHelper = new PropertyHelper_Spelling( static_cast<XSpellChecker *>(this), xPropSet );
pPropHelper->AddAsPropListener(); //! after a reference is established
}
else {
@@ -580,7 +580,7 @@ void SAL_CALL SpellChecker::dispose()
if (!bDisposing)
{
bDisposing = true;
- EventObject aEvtObj( (XSpellChecker *) this );
+ EventObject aEvtObj( static_cast<XSpellChecker *>(this) );
aEvtListeners.disposeAndClear( aEvtObj );
if (pPropHelper)
{