summaryrefslogtreecommitdiff
path: root/dbaccess
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 /dbaccess
parent3c4fd27392bd153e043eeb60907eeded48c60cf2 (diff)
loplugin:redundantcast: redundant const_cast followed by implicit upcast
Change-Id: I58297ba336d96358eb0683684bbd763870ef56cb
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/core/api/RowSetBase.cxx2
-rw-r--r--dbaccess/source/ext/macromigration/macromigrationwizard.cxx2
-rw-r--r--dbaccess/source/ui/querydesign/querycontroller.cxx2
-rw-r--r--dbaccess/source/ui/uno/AdvancedSettingsDlg.cxx2
-rw-r--r--dbaccess/source/ui/uno/DBTypeWizDlg.cxx2
-rw-r--r--dbaccess/source/ui/uno/DBTypeWizDlgSetup.cxx2
-rw-r--r--dbaccess/source/ui/uno/TableFilterDlg.cxx2
-rw-r--r--dbaccess/source/ui/uno/UserSettingsDlg.cxx2
-rw-r--r--dbaccess/source/ui/uno/admindlg.cxx2
-rw-r--r--dbaccess/source/ui/uno/unosqlmessage.cxx2
10 files changed, 10 insertions, 10 deletions
diff --git a/dbaccess/source/core/api/RowSetBase.cxx b/dbaccess/source/core/api/RowSetBase.cxx
index 43acaa94e842..cad73d99295e 100644
--- a/dbaccess/source/core/api/RowSetBase.cxx
+++ b/dbaccess/source/core/api/RowSetBase.cxx
@@ -182,7 +182,7 @@ void SAL_CALL ORowSetBase::disposing(void)
// cppu::OPropertySetHelper
::cppu::IPropertyArrayHelper& SAL_CALL ORowSetBase::getInfoHelper()
{
- return *const_cast<ORowSetBase*>(this)->getArrayHelper();
+ return *getArrayHelper();
}
// XRow
diff --git a/dbaccess/source/ext/macromigration/macromigrationwizard.cxx b/dbaccess/source/ext/macromigration/macromigrationwizard.cxx
index f61045458791..5966a9b27e3c 100644
--- a/dbaccess/source/ext/macromigration/macromigrationwizard.cxx
+++ b/dbaccess/source/ext/macromigration/macromigrationwizard.cxx
@@ -197,7 +197,7 @@ namespace dbmm
::cppu::IPropertyArrayHelper& SAL_CALL MacroMigrationDialogService::getInfoHelper()
{
- return *const_cast< MacroMigrationDialogService* >( this )->getArrayHelper();
+ return *getArrayHelper();
}
::cppu::IPropertyArrayHelper* MacroMigrationDialogService::createArrayHelper( ) const
diff --git a/dbaccess/source/ui/querydesign/querycontroller.cxx b/dbaccess/source/ui/querydesign/querycontroller.cxx
index 74aeeda682ea..c1f5fe73011e 100644
--- a/dbaccess/source/ui/querydesign/querycontroller.cxx
+++ b/dbaccess/source/ui/querydesign/querycontroller.cxx
@@ -413,7 +413,7 @@ void SAL_CALL OQueryController::getFastPropertyValue( Any& o_rValue, sal_Int32 i
::cppu::IPropertyArrayHelper& OQueryController::getInfoHelper()
{
- return *const_cast< OQueryController* >( this )->getArrayHelper();
+ return *getArrayHelper();
}
::cppu::IPropertyArrayHelper* OQueryController::createArrayHelper( ) const
diff --git a/dbaccess/source/ui/uno/AdvancedSettingsDlg.cxx b/dbaccess/source/ui/uno/AdvancedSettingsDlg.cxx
index cf90db45463b..ec9594082bcf 100644
--- a/dbaccess/source/ui/uno/AdvancedSettingsDlg.cxx
+++ b/dbaccess/source/ui/uno/AdvancedSettingsDlg.cxx
@@ -110,7 +110,7 @@ namespace dbaui
::cppu::IPropertyArrayHelper& OAdvancedSettingsDialog::getInfoHelper()
{
- return *const_cast<OAdvancedSettingsDialog*>(this)->getArrayHelper();
+ return *getArrayHelper();
}
::cppu::IPropertyArrayHelper* OAdvancedSettingsDialog::createArrayHelper( ) const
diff --git a/dbaccess/source/ui/uno/DBTypeWizDlg.cxx b/dbaccess/source/ui/uno/DBTypeWizDlg.cxx
index bc1873982ea0..6c5d796872d1 100644
--- a/dbaccess/source/ui/uno/DBTypeWizDlg.cxx
+++ b/dbaccess/source/ui/uno/DBTypeWizDlg.cxx
@@ -82,7 +82,7 @@ Reference<XPropertySetInfo> SAL_CALL ODBTypeWizDialog::getPropertySetInfo() thr
::cppu::IPropertyArrayHelper& ODBTypeWizDialog::getInfoHelper()
{
- return *const_cast<ODBTypeWizDialog*>(this)->getArrayHelper();
+ return *getArrayHelper();
}
::cppu::IPropertyArrayHelper* ODBTypeWizDialog::createArrayHelper( ) const
diff --git a/dbaccess/source/ui/uno/DBTypeWizDlgSetup.cxx b/dbaccess/source/ui/uno/DBTypeWizDlgSetup.cxx
index 15dcaa292158..4c46903fd03b 100644
--- a/dbaccess/source/ui/uno/DBTypeWizDlgSetup.cxx
+++ b/dbaccess/source/ui/uno/DBTypeWizDlgSetup.cxx
@@ -96,7 +96,7 @@ Reference<XPropertySetInfo> SAL_CALL ODBTypeWizDialogSetup::getPropertySetInfo(
::cppu::IPropertyArrayHelper& ODBTypeWizDialogSetup::getInfoHelper()
{
- return *const_cast<ODBTypeWizDialogSetup*>(this)->getArrayHelper();
+ return *getArrayHelper();
}
::cppu::IPropertyArrayHelper* ODBTypeWizDialogSetup::createArrayHelper( ) const
diff --git a/dbaccess/source/ui/uno/TableFilterDlg.cxx b/dbaccess/source/ui/uno/TableFilterDlg.cxx
index 9f284263bb1e..475c66457157 100644
--- a/dbaccess/source/ui/uno/TableFilterDlg.cxx
+++ b/dbaccess/source/ui/uno/TableFilterDlg.cxx
@@ -82,7 +82,7 @@ Reference<XPropertySetInfo> SAL_CALL OTableFilterDialog::getPropertySetInfo() t
::cppu::IPropertyArrayHelper& OTableFilterDialog::getInfoHelper()
{
- return *const_cast<OTableFilterDialog*>(this)->getArrayHelper();
+ return *getArrayHelper();
}
::cppu::IPropertyArrayHelper* OTableFilterDialog::createArrayHelper( ) const
diff --git a/dbaccess/source/ui/uno/UserSettingsDlg.cxx b/dbaccess/source/ui/uno/UserSettingsDlg.cxx
index e66d888c25a1..55bab9fcb5a2 100644
--- a/dbaccess/source/ui/uno/UserSettingsDlg.cxx
+++ b/dbaccess/source/ui/uno/UserSettingsDlg.cxx
@@ -82,7 +82,7 @@ Reference<XPropertySetInfo> SAL_CALL OUserSettingsDialog::getPropertySetInfo()
::cppu::IPropertyArrayHelper& OUserSettingsDialog::getInfoHelper()
{
- return *const_cast<OUserSettingsDialog*>(this)->getArrayHelper();
+ return *getArrayHelper();
}
::cppu::IPropertyArrayHelper* OUserSettingsDialog::createArrayHelper( ) const
diff --git a/dbaccess/source/ui/uno/admindlg.cxx b/dbaccess/source/ui/uno/admindlg.cxx
index f2f52d656174..d6f7a98d3188 100644
--- a/dbaccess/source/ui/uno/admindlg.cxx
+++ b/dbaccess/source/ui/uno/admindlg.cxx
@@ -82,7 +82,7 @@ Reference<XPropertySetInfo> SAL_CALL ODataSourcePropertyDialog::getPropertySetI
::cppu::IPropertyArrayHelper& ODataSourcePropertyDialog::getInfoHelper()
{
- return *const_cast<ODataSourcePropertyDialog*>(this)->getArrayHelper();
+ return *getArrayHelper();
}
::cppu::IPropertyArrayHelper* ODataSourcePropertyDialog::createArrayHelper( ) const
diff --git a/dbaccess/source/ui/uno/unosqlmessage.cxx b/dbaccess/source/ui/uno/unosqlmessage.cxx
index df635164f7fe..ec22c959d384 100644
--- a/dbaccess/source/ui/uno/unosqlmessage.cxx
+++ b/dbaccess/source/ui/uno/unosqlmessage.cxx
@@ -131,7 +131,7 @@ Reference<XPropertySetInfo> SAL_CALL OSQLMessageDialog::getPropertySetInfo() th
::cppu::IPropertyArrayHelper& OSQLMessageDialog::getInfoHelper()
{
- return *const_cast<OSQLMessageDialog*>(this)->getArrayHelper();
+ return *getArrayHelper();
}
::cppu::IPropertyArrayHelper* OSQLMessageDialog::createArrayHelper( ) const