summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-02 11:28:38 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-02 11:28:38 +0200
commit64b33886ef0ba179abafa50e1bfc6f3386488a5b (patch)
tree7995106a4407c1419000bc3c39a71c9ec049103e /toolkit
parent0686fcdb667f1dce67185656d2d011e84638eff3 (diff)
loplugin:cstylecast: deal with those that are (technically) const_cast
Change-Id: Ie7129c66f236b93f505dad9ea672ab777cb380d1
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/source/awt/vclxtoolkit.cxx2
-rw-r--r--toolkit/source/controls/controlmodelcontainerbase.cxx2
-rw-r--r--toolkit/source/controls/dialogcontrol.cxx2
-rw-r--r--toolkit/source/controls/stdtabcontroller.cxx4
4 files changed, 5 insertions, 5 deletions
diff --git a/toolkit/source/awt/vclxtoolkit.cxx b/toolkit/source/awt/vclxtoolkit.cxx
index b14817387387..874515736437 100644
--- a/toolkit/source/awt/vclxtoolkit.cxx
+++ b/toolkit/source/awt/vclxtoolkit.cxx
@@ -1064,7 +1064,7 @@ vcl::Window* VCLXToolkit::ImplCreateWindow( VCLXWindow** ppNewComp,
rtl_getGlobalProcessId( reinterpret_cast<sal_uInt8*>(processID) );
- ::com::sun::star::uno::Sequence<sal_Int8> processIdSeq((sal_Int8*)processID, 16);
+ ::com::sun::star::uno::Sequence<sal_Int8> processIdSeq(processID, 16);
::com::sun::star::uno::Any anyHandle = xSystemDepParent->getWindowHandle(processIdSeq, SYSTEM_DEPENDENT_TYPE);
diff --git a/toolkit/source/controls/controlmodelcontainerbase.cxx b/toolkit/source/controls/controlmodelcontainerbase.cxx
index 98b953cd5e29..5457d162db6a 100644
--- a/toolkit/source/controls/controlmodelcontainerbase.cxx
+++ b/toolkit/source/controls/controlmodelcontainerbase.cxx
@@ -1684,7 +1684,7 @@ void ControlContainerBase::ImplModelPropertiesChanged( const Sequence< PropertyC
{
const PropertyChangeEvent& rEvt = rEvents.getConstArray()[i];
Reference< XControlModel > xModel( rEvt.Source, UNO_QUERY );
- bool bOwnModel = (XControlModel*)xModel.get() == (XControlModel*)getModel().get();
+ bool bOwnModel = xModel.get() == getModel().get();
if ( ( rEvt.PropertyName == s1 ) ||
( rEvt.PropertyName == s2 ) ||
( rEvt.PropertyName == s3 ) ||
diff --git a/toolkit/source/controls/dialogcontrol.cxx b/toolkit/source/controls/dialogcontrol.cxx
index 39404aa69ea5..f194f3d8c021 100644
--- a/toolkit/source/controls/dialogcontrol.cxx
+++ b/toolkit/source/controls/dialogcontrol.cxx
@@ -659,7 +659,7 @@ void UnoDialogControl::ImplModelPropertiesChanged( const Sequence< PropertyChang
{
const PropertyChangeEvent& rEvt = rEvents.getConstArray()[i];
Reference< XControlModel > xModel( rEvt.Source, UNO_QUERY );
- bool bOwnModel = (XControlModel*)xModel.get() == (XControlModel*)getModel().get();
+ bool bOwnModel = xModel.get() == getModel().get();
if ( bOwnModel && rEvt.PropertyName == "ImageURL" )
{
OUString aImageURL;
diff --git a/toolkit/source/controls/stdtabcontroller.cxx b/toolkit/source/controls/stdtabcontroller.cxx
index 313458772584..bb606aee19fa 100644
--- a/toolkit/source/controls/stdtabcontroller.cxx
+++ b/toolkit/source/controls/stdtabcontroller.cxx
@@ -258,7 +258,7 @@ void StdTabController::autoTabOrder( ) throw(RuntimeException, std::exception)
size_t n;
for ( n = 0; n < nCtrls; n++ )
{
- XWindow* pC = (XWindow*)pComponents[n].get();
+ XWindow* pC = pComponents[n].get();
ComponentEntry* pE = new ComponentEntry;
pE->pComponent = pC;
awt::Rectangle aPosSize = pC->getPosSize();
@@ -396,7 +396,7 @@ Reference< XControl > StdTabController::FindControl( Sequence< Reference< XCont
for ( sal_Int32 n = 0; n < nCtrls; n++ )
{
Reference< XControlModel > xModel(pCtrls[n].is() ? pCtrls[n]->getModel() : Reference< XControlModel > ());
- if ( (XControlModel*)xModel.get() == (XControlModel*)rxCtrlModel.get() )
+ if ( xModel.get() == rxCtrlModel.get() )
{
Reference< XControl > xCtrl( pCtrls[n] );
::comphelper::removeElementAt( rCtrls, n );