summaryrefslogtreecommitdiff
path: root/starmath/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-08 16:28:06 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-08 16:28:06 +0200
commiteac0f3023c920325a4c58bcf6d5d57041128c06e (patch)
tree4a21b205d6107c829574b1740c1210ea9e5cd46d /starmath/source
parent54bac4ddafbf330ad2ab17d69f09d5f67664d01b (diff)
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: Ife37243f051e23ebdd5d8d8692b59a748d491a26
Diffstat (limited to 'starmath/source')
-rw-r--r--starmath/source/accessibility.cxx2
-rw-r--r--starmath/source/dialog.cxx2
-rw-r--r--starmath/source/mathmlimport.cxx8
-rw-r--r--starmath/source/utility.cxx2
4 files changed, 7 insertions, 7 deletions
diff --git a/starmath/source/accessibility.cxx b/starmath/source/accessibility.cxx
index d0288ac3b3ab..f3c5996a3814 100644
--- a/starmath/source/accessibility.cxx
+++ b/starmath/source/accessibility.cxx
@@ -155,7 +155,7 @@ void SmGraphicAccessible::LaunchEvent(
const uno::Any &rNewVal)
{
AccessibleEventObject aEvt;
- aEvt.Source = (XAccessible *) this;
+ aEvt.Source = static_cast<XAccessible *>(this);
aEvt.EventId = nAccesibleEventId;
aEvt.OldValue = rOldVal;
aEvt.NewValue = rNewVal ;
diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx
index 2d90b6a6e3b6..59a08b59d6a5 100644
--- a/starmath/source/dialog.cxx
+++ b/starmath/source/dialog.cxx
@@ -2363,7 +2363,7 @@ void SmSymDefineDialog::SetFont(const OUString &rFontName, const OUString &rStyl
while( NULL != (pSubset = pSubsetMap->GetNextSubset( bFirst )) )
{
sal_uInt16 nPos = pFontsSubsetLB->InsertEntry( pSubset->GetName());
- pFontsSubsetLB->SetEntryData( nPos, (void *) pSubset );
+ pFontsSubsetLB->SetEntryData( nPos, const_cast<Subset *>(pSubset) );
// subset must live at least as long as the selected font !!!
if( bFirst )
pFontsSubsetLB->SelectEntryPos( nPos );
diff --git a/starmath/source/mathmlimport.cxx b/starmath/source/mathmlimport.cxx
index 2a8179ef34d6..9514aab048cd 100644
--- a/starmath/source/mathmlimport.cxx
+++ b/starmath/source/mathmlimport.cxx
@@ -292,7 +292,7 @@ sal_uLong SmXMLImportWrapper::ReadThroughComponent(
{
// sax parser sends wrapped exceptions,
// try to find the original one
- xml::sax::SAXException aSaxEx = *(xml::sax::SAXException*)(&r);
+ xml::sax::SAXException aSaxEx = *static_cast<xml::sax::SAXException*>(&r);
bool bTryChild = true;
while( bTryChild )
@@ -428,7 +428,7 @@ uno::Reference< uno::XInterface > SAL_CALL SmXMLImport_createInstance(
const uno::Reference< lang::XMultiServiceFactory > & rSMgr)
throw( uno::Exception )
{
- return (cppu::OWeakObject*)new SmXMLImport(comphelper::getComponentContext(rSMgr), SmXMLImport_getImplementationName(), SvXMLImportFlags::ALL);
+ return static_cast<cppu::OWeakObject*>(new SmXMLImport(comphelper::getComponentContext(rSMgr), SmXMLImport_getImplementationName(), SvXMLImportFlags::ALL));
}
@@ -448,7 +448,7 @@ uno::Reference< uno::XInterface > SAL_CALL SmXMLImportMeta_createInstance(
const uno::Reference< lang::XMultiServiceFactory > & rSMgr)
throw( uno::Exception )
{
- return (cppu::OWeakObject*)new SmXMLImport( comphelper::getComponentContext(rSMgr), SmXMLImportMeta_getImplementationName(), SvXMLImportFlags::META );
+ return static_cast<cppu::OWeakObject*>(new SmXMLImport( comphelper::getComponentContext(rSMgr), SmXMLImportMeta_getImplementationName(), SvXMLImportFlags::META ));
}
@@ -468,7 +468,7 @@ uno::Reference< uno::XInterface > SAL_CALL SmXMLImportSettings_createInstance(
const uno::Reference< lang::XMultiServiceFactory > & rSMgr)
throw( uno::Exception )
{
- return (cppu::OWeakObject*)new SmXMLImport( comphelper::getComponentContext(rSMgr), SmXMLImportSettings_getImplementationName(), SvXMLImportFlags::SETTINGS );
+ return static_cast<cppu::OWeakObject*>(new SmXMLImport( comphelper::getComponentContext(rSMgr), SmXMLImportSettings_getImplementationName(), SvXMLImportFlags::SETTINGS ));
}
sal_Int64 SAL_CALL SmXMLImport::getSomething(
diff --git a/starmath/source/utility.cxx b/starmath/source/utility.cxx
index 8814636f0968..abd2e5e8480f 100644
--- a/starmath/source/utility.cxx
+++ b/starmath/source/utility.cxx
@@ -181,7 +181,7 @@ SmFontPickListBox& SmFontPickListBox::operator=(const SmFontPickList& rList)
{
sal_uInt16 nPos;
- *(SmFontPickList *)this = rList;
+ *static_cast<SmFontPickList *>(this) = rList;
for (nPos = 0; nPos < aFontVec.size(); nPos++)
InsertEntry(GetStringItem(aFontVec[nPos]), nPos);