Kaydet (Commit) 123dd186 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:redundantcast: const_cast to same type

Change-Id: Ic4e5afab0e948392a0f2e4bdeab84afffa3e647f
üst d9727f1b
...@@ -108,7 +108,7 @@ Reference< XNameAccess > SAL_CALL OGroup::getUsers( ) throw(RuntimeException, s ...@@ -108,7 +108,7 @@ Reference< XNameAccess > SAL_CALL OGroup::getUsers( ) throw(RuntimeException, s
// allowed // allowed
} }
return const_cast<OGroup*>(this)->m_pUsers; return m_pUsers;
} }
......
...@@ -163,7 +163,7 @@ Reference< ::com::sun::star::container::XNameAccess > SAL_CALL OIndex::getColumn ...@@ -163,7 +163,7 @@ Reference< ::com::sun::star::container::XNameAccess > SAL_CALL OIndex::getColumn
OSL_FAIL( "OIndex::getColumns: caught an exception!" ); 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) Reference< XPropertySet > SAL_CALL OIndex::createDataDescriptor( ) throw(RuntimeException, std::exception)
......
...@@ -171,7 +171,7 @@ Reference< ::com::sun::star::container::XNameAccess > SAL_CALL OKey::getColumns( ...@@ -171,7 +171,7 @@ Reference< ::com::sun::star::container::XNameAccess > SAL_CALL OKey::getColumns(
// allowed // allowed
} }
return const_cast<OKey*>(this)->m_pColumns; return m_pColumns;
} }
Reference< XPropertySet > SAL_CALL OKey::createDataDescriptor( ) throw(RuntimeException, std::exception) Reference< XPropertySet > SAL_CALL OKey::createDataDescriptor( ) throw(RuntimeException, std::exception)
......
...@@ -117,7 +117,7 @@ Reference< XNameAccess > SAL_CALL OUser::getGroups( ) throw(RuntimeException, s ...@@ -117,7 +117,7 @@ Reference< XNameAccess > SAL_CALL OUser::getGroups( ) throw(RuntimeException, s
// allowed // allowed
} }
return const_cast<OUser*>(this)->m_pGroups; return m_pGroups;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment