summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-05-29 12:04:12 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-05-29 12:04:12 +0200
commit123dd1869d988f5efe1ce896cb6db0963a53bd09 (patch)
treedfa819ace20735fabc850fc50aa414ab9dd102ac /connectivity
parentd9727f1b78cd8f1bec0d6a9cc4bed693e9715328 (diff)
loplugin:redundantcast: const_cast to same type
Change-Id: Ic4e5afab0e948392a0f2e4bdeab84afffa3e647f
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/sdbcx/VGroup.cxx2
-rw-r--r--connectivity/source/sdbcx/VIndex.cxx2
-rw-r--r--connectivity/source/sdbcx/VKey.cxx2
-rw-r--r--connectivity/source/sdbcx/VUser.cxx2
4 files changed, 4 insertions, 4 deletions
diff --git a/connectivity/source/sdbcx/VGroup.cxx b/connectivity/source/sdbcx/VGroup.cxx
index c5e27d85583f..196cbc358c99 100644
--- a/connectivity/source/sdbcx/VGroup.cxx
+++ b/connectivity/source/sdbcx/VGroup.cxx
@@ -108,7 +108,7 @@ Reference< XNameAccess > SAL_CALL OGroup::getUsers( ) throw(RuntimeException, s
// allowed
}
- return const_cast<OGroup*>(this)->m_pUsers;
+ return m_pUsers;
}
diff --git a/connectivity/source/sdbcx/VIndex.cxx b/connectivity/source/sdbcx/VIndex.cxx
index e7dee0361cec..cebffa3f5121 100644
--- a/connectivity/source/sdbcx/VIndex.cxx
+++ b/connectivity/source/sdbcx/VIndex.cxx
@@ -163,7 +163,7 @@ Reference< ::com::sun::star::container::XNameAccess > SAL_CALL OIndex::getColumn
OSL_FAIL( "OIndex::getColumns: caught an exception!" );
}
- return const_cast<OIndex*>(this)->m_pColumns;
+ return m_pColumns;
}
Reference< XPropertySet > SAL_CALL OIndex::createDataDescriptor( ) throw(RuntimeException, std::exception)
diff --git a/connectivity/source/sdbcx/VKey.cxx b/connectivity/source/sdbcx/VKey.cxx
index 59d820659538..537d4c2c8893 100644
--- a/connectivity/source/sdbcx/VKey.cxx
+++ b/connectivity/source/sdbcx/VKey.cxx
@@ -171,7 +171,7 @@ Reference< ::com::sun::star::container::XNameAccess > SAL_CALL OKey::getColumns(
// allowed
}
- return const_cast<OKey*>(this)->m_pColumns;
+ return m_pColumns;
}
Reference< XPropertySet > SAL_CALL OKey::createDataDescriptor( ) throw(RuntimeException, std::exception)
diff --git a/connectivity/source/sdbcx/VUser.cxx b/connectivity/source/sdbcx/VUser.cxx
index 4104c25f17c1..c80934d1da25 100644
--- a/connectivity/source/sdbcx/VUser.cxx
+++ b/connectivity/source/sdbcx/VUser.cxx
@@ -117,7 +117,7 @@ Reference< XNameAccess > SAL_CALL OUser::getGroups( ) throw(RuntimeException, s
// allowed
}
- return const_cast<OUser*>(this)->m_pGroups;
+ return m_pGroups;
}