summaryrefslogtreecommitdiff
path: root/cppuhelper
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-09-11 15:25:48 +0200
committerNoel Grandin <noel@peralex.com>2014-09-17 07:08:23 +0200
commit9685276b975aa37d16ba81dd8294b5717e3823df (patch)
tree58a0b916218bf99ea5b0c6c77d3c913f317b512a /cppuhelper
parenta0a5f7695388627246d30701afdbd68ed812ddc9 (diff)
cppu and cppuhelper: loplugin: cstylecast
Add a macro in include/cppuhelper/implbase_ex.hxx to make initialising the type_entry classes a little less verbose. Change-Id: I0904b5b9db269c92bc89e7ce3d6c8b09350c9897
Diffstat (limited to 'cppuhelper')
-rw-r--r--cppuhelper/source/propshlp.cxx10
-rw-r--r--cppuhelper/source/weak.cxx2
2 files changed, 6 insertions, 6 deletions
diff --git a/cppuhelper/source/propshlp.cxx b/cppuhelper/source/propshlp.cxx
index 94500ba2def5..c57a61d897c5 100644
--- a/cppuhelper/source/propshlp.cxx
+++ b/cppuhelper/source/propshlp.cxx
@@ -701,12 +701,12 @@ void OPropertySetHelper::fire
{
if( bVetoable ) // fire change Events?
{
- ((XVetoableChangeListener *)pL)->vetoableChange(
+ static_cast<XVetoableChangeListener *>(pL)->vetoableChange(
pEvts[i] );
}
else
{
- ((XPropertyChangeListener *)pL)->propertyChange(
+ static_cast<XPropertyChangeListener *>(pL)->propertyChange(
pEvts[i] );
}
}
@@ -753,12 +753,12 @@ void OPropertySetHelper::fire
{
if( bVetoable ) // fire change Events?
{
- ((XVetoableChangeListener *)pL)->vetoableChange(
+ static_cast<XVetoableChangeListener *>(pL)->vetoableChange(
pEvts[i] );
}
else
{
- ((XPropertyChangeListener *)pL)->propertyChange(
+ static_cast<XPropertyChangeListener *>(pL)->propertyChange(
pEvts[i] );
}
}
@@ -798,7 +798,7 @@ void OPropertySetHelper::fire
while( aIt.hasMoreElements() )
{
XPropertiesChangeListener * pL =
- (XPropertiesChangeListener *)aIt.next();
+ static_cast<XPropertiesChangeListener *>(aIt.next());
try
{
try
diff --git a/cppuhelper/source/weak.cxx b/cppuhelper/source/weak.cxx
index 65018b7d75ec..57ae161f50ed 100644
--- a/cppuhelper/source/weak.cxx
+++ b/cppuhelper/source/weak.cxx
@@ -109,7 +109,7 @@ void SAL_CALL OWeakConnectionPoint::dispose() throw(::com::sun::star::uno::Runti
{
try
{
- ((XReference *)aIt.next())->dispose();
+ static_cast<XReference *>(aIt.next())->dispose();
}
catch (com::sun::star::lang::DisposedException &) {}
catch (RuntimeException &)