summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-10-01 11:11:44 +0200
committerNoel Grandin <noel@peralex.com>2014-10-01 13:08:43 +0200
commite5bf214ebb58637d1af89ea137c8952a46f14ef4 (patch)
tree7a67f0e81a7cb5563726c9b2dab1008a41c5e032 /extensions
parent4923ac72aaca2f0671aed98de33902eac0810131 (diff)
loplugin: cstylecast
Change-Id: I6ea98852ba775d85ccd54823b67224ea7f587c65
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/logging/logger.cxx2
-rw-r--r--extensions/source/plugin/base/multiplx.cxx2
-rw-r--r--extensions/source/plugin/base/nfuncs.cxx4
-rw-r--r--extensions/source/plugin/base/xplugin.cxx2
-rw-r--r--extensions/source/propctrlr/cellbindinghelper.cxx4
-rw-r--r--extensions/source/propctrlr/formcomponenthandler.cxx8
-rw-r--r--extensions/source/propctrlr/propertyhandler.cxx2
-rw-r--r--extensions/source/propctrlr/standardcontrol.cxx2
-rw-r--r--extensions/source/propctrlr/taborder.cxx4
-rw-r--r--extensions/source/propctrlr/usercontrol.cxx2
10 files changed, 16 insertions, 16 deletions
diff --git a/extensions/source/logging/logger.cxx b/extensions/source/logging/logger.cxx
index 6d7c3f8a843d..d185ee652f49 100644
--- a/extensions/source/logging/logger.cxx
+++ b/extensions/source/logging/logger.cxx
@@ -301,7 +301,7 @@ namespace logging
::osl::MutexGuard aGuard( m_aMutex );
WeakReference< XLogger >& rLogger( m_aImpl[ _rName ] );
- Reference< XLogger > xLogger( (Reference< XLogger >)rLogger );
+ Reference< XLogger > xLogger( rLogger );
if ( !xLogger.is() )
{
// never requested before, or already dead
diff --git a/extensions/source/plugin/base/multiplx.cxx b/extensions/source/plugin/base/multiplx.cxx
index 1411ead3d3c6..54ca0015df44 100644
--- a/extensions/source/plugin/base/multiplx.cxx
+++ b/extensions/source/plugin/base/multiplx.cxx
@@ -185,7 +185,7 @@ if( pCont ) \
{ \
if( aIt.hasMoreElements() ) \
{ \
- InterfaceName * pListener = (InterfaceName *)aIt.next(); \
+ InterfaceName * pListener = static_cast<InterfaceName *>(aIt.next()); \
try \
{ \
pListener->MethodName( aEvt ); \
diff --git a/extensions/source/plugin/base/nfuncs.cxx b/extensions/source/plugin/base/nfuncs.cxx
index c5d25be1f54d..9adcf37e16fb 100644
--- a/extensions/source/plugin/base/nfuncs.cxx
+++ b/extensions/source/plugin/base/nfuncs.cxx
@@ -424,7 +424,7 @@ extern "C" {
if( ! pStream || pStream->getStreamType() != InputStream )
return NPERR_FILE_NOT_FOUND;
- PluginInputStream* pInputStream = (PluginInputStream*)pStream;
+ PluginInputStream* pInputStream = static_cast<PluginInputStream*>(pStream);
boost::scoped_array<sal_Int8> pBytes;
int nBytes = 0;
pPlugin->enterPluginCallback();
@@ -534,7 +534,7 @@ int32_t SAL_CALL NP_LOADDS NPN_Write( NPP instance, NPStream* stream, int32_t l
pImpl->enterPluginCallback();
::com::sun::star::uno::Sequence<sal_Int8> Bytes( (sal_Int8*)buffer, len );
- ((PluginOutputStream*)pStream)->getOutputStream()->writeBytes( Bytes );
+ static_cast<PluginOutputStream*>(pStream)->getOutputStream()->writeBytes( Bytes );
pImpl->leavePluginCallback();
return len;
diff --git a/extensions/source/plugin/base/xplugin.cxx b/extensions/source/plugin/base/xplugin.cxx
index bf201a6d2f36..4386de4638f0 100644
--- a/extensions/source/plugin/base/xplugin.cxx
+++ b/extensions/source/plugin/base/xplugin.cxx
@@ -573,7 +573,7 @@ void XPlugin_Impl::loadPlugin()
if (pEnvData->pDisplay) // headless?
{
XSync( (Display*)pEnvData->pDisplay, False );
- m_aNPWindow.window = (void*)pEnvData->aWindow;
+ m_aNPWindow.window = reinterpret_cast<void*>(pEnvData->aWindow);
}
else
{
diff --git a/extensions/source/propctrlr/cellbindinghelper.cxx b/extensions/source/propctrlr/cellbindinghelper.cxx
index b14ddcf885f0..4e4684b2a5f1 100644
--- a/extensions/source/propctrlr/cellbindinghelper.cxx
+++ b/extensions/source/propctrlr/cellbindinghelper.cxx
@@ -115,8 +115,8 @@ namespace pcr
while ( ( xParentAsForm.is() || xParentAsGrid.is() ) && xCheck.is() )
{
xCheck.set(xCheck->getParent(), css::uno::UNO_QUERY);
- xParentAsForm.set(xCheck.is() ? xCheck->getParent() : (Reference< XInterface >) Reference< XForm >(), css::uno::UNO_QUERY);
- xParentAsGrid.set(xCheck.is() ? xCheck->getParent() : (Reference< XInterface >) Reference< XGridColumnFactory >(), css::uno::UNO_QUERY);
+ xParentAsForm.set(xCheck.is() ? xCheck->getParent() : Reference< XForm >(), css::uno::UNO_QUERY);
+ xParentAsGrid.set(xCheck.is() ? xCheck->getParent() : Reference< XGridColumnFactory >(), css::uno::UNO_QUERY);
}
Reference< XInterface > xFormsCollection( xCheck.is() ? xCheck->getParent() : Reference< XInterface >() );
diff --git a/extensions/source/propctrlr/formcomponenthandler.cxx b/extensions/source/propctrlr/formcomponenthandler.cxx
index 6b2b1f84941d..cebf4294fd09 100644
--- a/extensions/source/propctrlr/formcomponenthandler.cxx
+++ b/extensions/source/propctrlr/formcomponenthandler.cxx
@@ -565,7 +565,7 @@ namespace pcr
else
{
INetURLObject aDocURL( impl_getDocumentURL_nothrow() );
- aPropertyValue <<= (OUString)URIHelper::SmartRel2Abs( aDocURL, sControlValue, Link(), false, true, INetURLObject::WAS_ENCODED, INetURLObject::DECODE_TO_IURI );
+ aPropertyValue <<= URIHelper::SmartRel2Abs( aDocURL, sControlValue, Link(), false, true, INetURLObject::WAS_ENCODED, INetURLObject::DECODE_TO_IURI );
}
}
break;
@@ -2800,7 +2800,7 @@ namespace pcr
bool bSuccess = ( 0 == aFileDlg.Execute() );
if ( bSuccess )
{
- _out_rNewValue <<= (OUString)aFileDlg.GetPath();
+ _out_rNewValue <<= aFileDlg.GetPath();
}
return bSuccess;
}
@@ -2822,7 +2822,7 @@ namespace pcr
_rClearBeforeDialog.clear();
bool bSuccess = ( 0 == aFileDlg.Execute() );
if ( bSuccess )
- _out_rNewValue <<= (OUString)aFileDlg.GetPath();
+ _out_rNewValue <<= aFileDlg.GetPath();
return bSuccess;
}
@@ -2885,7 +2885,7 @@ namespace pcr
_rClearBeforeDialog.clear();
bool bSuccess = ( 0 == aFileDlg.Execute() );
if ( bSuccess )
- _out_rNewValue <<= (OUString)aFileDlg.GetPath();
+ _out_rNewValue <<= aFileDlg.GetPath();
return bSuccess;
}
diff --git a/extensions/source/propctrlr/propertyhandler.cxx b/extensions/source/propctrlr/propertyhandler.cxx
index 6ac121a9259d..5c0927f0b4a7 100644
--- a/extensions/source/propctrlr/propertyhandler.cxx
+++ b/extensions/source/propctrlr/propertyhandler.cxx
@@ -112,7 +112,7 @@ namespace pcr
m_aSupportedProperties = doDescribeSupportedProperties();
m_bSupportedPropertiesAreKnown = true;
}
- return (Sequence< Property >)m_aSupportedProperties;
+ return m_aSupportedProperties;
}
Sequence< OUString > SAL_CALL PropertyHandler::getSupersededProperties( ) throw (RuntimeException, std::exception)
diff --git a/extensions/source/propctrlr/standardcontrol.cxx b/extensions/source/propctrlr/standardcontrol.cxx
index 2e22d16c9b0b..c7f51d7c896d 100644
--- a/extensions/source/propctrlr/standardcontrol.cxx
+++ b/extensions/source/propctrlr/standardcontrol.cxx
@@ -674,7 +674,7 @@ namespace pcr
if ( pItem )
{
DBG_ASSERT(pItem->ISA(SvxColorListItem), "OColorControl::OColorControl: invalid color item!");
- pColorList = ( (SvxColorListItem*)pItem )->GetColorList();
+ pColorList = static_cast<const SvxColorListItem*>( pItem )->GetColorList();
}
if ( !pColorList.is() )
diff --git a/extensions/source/propctrlr/taborder.cxx b/extensions/source/propctrlr/taborder.cxx
index 554c069775e3..fb28ed3ef266 100644
--- a/extensions/source/propctrlr/taborder.cxx
+++ b/extensions/source/propctrlr/taborder.cxx
@@ -318,7 +318,7 @@ namespace pcr
{
SvTreeListBox::ModelHasMoved( _pSource );
- ((TabOrderDialog*)GetParentDialog())->SetModified();
+ static_cast<TabOrderDialog*>(GetParentDialog())->SetModified();
}
@@ -328,7 +328,7 @@ namespace pcr
Image aImage;
for (long i=0; i<labs(nRelPos); i++)
{
- ((TabOrderDialog*)GetParentDialog())->SetModified();
+ static_cast<TabOrderDialog*>(GetParentDialog())->SetModified();
// move entries
diff --git a/extensions/source/propctrlr/usercontrol.cxx b/extensions/source/propctrlr/usercontrol.cxx
index ed2a27d0e359..f26035c1d1c6 100644
--- a/extensions/source/propctrlr/usercontrol.cxx
+++ b/extensions/source/propctrlr/usercontrol.cxx
@@ -293,7 +293,7 @@ namespace pcr
{
Any aPropValue;
if ( !getTypedControlWindow()->GetText().isEmpty() )
- aPropValue <<= (OUString)getTypedControlWindow()->GetURL();
+ aPropValue <<= getTypedControlWindow()->GetURL();
return aPropValue;
}