summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-04-13 12:35:57 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-04-13 12:36:36 +0200
commit373a9b9bb62c50072c06e28fd932afb6e71ba687 (patch)
treedc6b72474110a4311d7ab57d42dc4bda5c221e4b /extensions
parent3c4fd27392bd153e043eeb60907eeded48c60cf2 (diff)
loplugin:redundantcast: redundant const_cast followed by implicit upcast
Change-Id: I58297ba336d96358eb0683684bbd763870ef56cb
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/abpilot/unodialogabp.cxx2
-rw-r--r--extensions/source/propctrlr/MasterDetailLinkDialog.cxx2
-rw-r--r--extensions/source/propctrlr/controlfontdialog.cxx2
-rw-r--r--extensions/source/propctrlr/formcomponenthandler.cxx2
-rw-r--r--extensions/source/propctrlr/pcrunodialogs.cxx2
-rw-r--r--extensions/source/propctrlr/submissionhandler.cxx2
6 files changed, 6 insertions, 6 deletions
diff --git a/extensions/source/abpilot/unodialogabp.cxx b/extensions/source/abpilot/unodialogabp.cxx
index dd24e0c5cd54..f8afef08c385 100644
--- a/extensions/source/abpilot/unodialogabp.cxx
+++ b/extensions/source/abpilot/unodialogabp.cxx
@@ -128,7 +128,7 @@ namespace abp
::cppu::IPropertyArrayHelper& OABSPilotUno::getInfoHelper()
{
- return *const_cast<OABSPilotUno*>(this)->getArrayHelper();
+ return *getArrayHelper();
}
diff --git a/extensions/source/propctrlr/MasterDetailLinkDialog.cxx b/extensions/source/propctrlr/MasterDetailLinkDialog.cxx
index 351669a95d57..8f7f24b9d5cd 100644
--- a/extensions/source/propctrlr/MasterDetailLinkDialog.cxx
+++ b/extensions/source/propctrlr/MasterDetailLinkDialog.cxx
@@ -91,7 +91,7 @@ namespace pcr
::cppu::IPropertyArrayHelper& MasterDetailLinkDialog::getInfoHelper()
{
- return *const_cast<MasterDetailLinkDialog*>(this)->getArrayHelper();
+ return *getArrayHelper();
}
diff --git a/extensions/source/propctrlr/controlfontdialog.cxx b/extensions/source/propctrlr/controlfontdialog.cxx
index 66718f0d081d..371ca6a5d133 100644
--- a/extensions/source/propctrlr/controlfontdialog.cxx
+++ b/extensions/source/propctrlr/controlfontdialog.cxx
@@ -129,7 +129,7 @@ namespace pcr
::cppu::IPropertyArrayHelper& OControlFontDialog::getInfoHelper()
{
- return *const_cast<OControlFontDialog*>(this)->getArrayHelper();
+ return *getArrayHelper();
}
diff --git a/extensions/source/propctrlr/formcomponenthandler.cxx b/extensions/source/propctrlr/formcomponenthandler.cxx
index 105941592695..e45398145741 100644
--- a/extensions/source/propctrlr/formcomponenthandler.cxx
+++ b/extensions/source/propctrlr/formcomponenthandler.cxx
@@ -3314,7 +3314,7 @@ namespace pcr
::cppu::IPropertyArrayHelper & FormComponentPropertyHandler::getInfoHelper()
{
- return *const_cast<FormComponentPropertyHandler*>(this)->getArrayHelper();
+ return *getArrayHelper();
}
uno::Reference< beans::XPropertySetInfo > SAL_CALL FormComponentPropertyHandler::getPropertySetInfo( ) throw(uno::RuntimeException, std::exception)
diff --git a/extensions/source/propctrlr/pcrunodialogs.cxx b/extensions/source/propctrlr/pcrunodialogs.cxx
index 9c26eb5465d6..2f2d56086fb6 100644
--- a/extensions/source/propctrlr/pcrunodialogs.cxx
+++ b/extensions/source/propctrlr/pcrunodialogs.cxx
@@ -118,7 +118,7 @@ namespace pcr
::cppu::IPropertyArrayHelper& OTabOrderDialog::getInfoHelper()
{
- return *const_cast< OTabOrderDialog* >( this )->getArrayHelper();
+ return *getArrayHelper();
}
diff --git a/extensions/source/propctrlr/submissionhandler.cxx b/extensions/source/propctrlr/submissionhandler.cxx
index dd7432a5f554..e338f58f957a 100644
--- a/extensions/source/propctrlr/submissionhandler.cxx
+++ b/extensions/source/propctrlr/submissionhandler.cxx
@@ -292,7 +292,7 @@ namespace pcr
switch ( nPropId )
{
case PROPERTY_ID_SUBMISSION_ID:
- const_cast< SubmissionHelper* >( m_pHelper.get() )->getAllElementUINames( EFormsHelper::Submission, aListEntries, false );
+ m_pHelper.get()->getAllElementUINames( EFormsHelper::Submission, aListEntries, false );
break;
case PROPERTY_ID_XFORMS_BUTTONTYPE: