From e5a63993f68edb8182abbf50d24321ec22137889 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 5 Dec 2014 11:28:08 +0100 Subject: loplugin:cstylecast, involving pointer to incomplete type Change-Id: I4b291f0d40fd8622094a706f8241c8917e4f0cf3 --- connectivity/source/drivers/dbase/DTables.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'connectivity/source/drivers/dbase') diff --git a/connectivity/source/drivers/dbase/DTables.cxx b/connectivity/source/drivers/dbase/DTables.cxx index 8ec47ad96758..ae1361e5e294 100644 --- a/connectivity/source/drivers/dbase/DTables.cxx +++ b/connectivity/source/drivers/dbase/DTables.cxx @@ -17,6 +17,9 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include + +#include #include "dbase/DTables.hxx" #include "dbase/DTable.hxx" #include @@ -45,7 +48,7 @@ using namespace ::com::sun::star::container; sdbcx::ObjectType ODbaseTables::createObject(const OUString& _rName) { - ODbaseTable* pRet = new ODbaseTable(this,(ODbaseConnection*)static_cast(m_rParent).getConnection(), + ODbaseTable* pRet = new ODbaseTable(this, static_cast(static_cast(m_rParent).getConnection()), _rName,OUString("TABLE")); sdbcx::ObjectType xRet = pRet; @@ -60,7 +63,7 @@ void ODbaseTables::impl_refresh( ) throw(RuntimeException) Reference< XPropertySet > ODbaseTables::createDescriptor() { - return new ODbaseTable(this,(ODbaseConnection*)static_cast(m_rParent).getConnection()); + return new ODbaseTable(this, static_cast(static_cast(m_rParent).getConnection())); } // XAppend -- cgit