summaryrefslogtreecommitdiffstats
path: root/connectivity
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-12-05 11:16:20 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-12-05 11:16:42 +0100
commit05a651d2dd574cf82aa81bb624904ad746e0c5a5 (patch)
tree92c1521c7317b8f81128d206bbce9c8eb6987948 /connectivity
parentloplugin:unreffun (diff)
downloadcore-05a651d2dd574cf82aa81bb624904ad746e0c5a5.tar.gz
core-05a651d2dd574cf82aa81bb624904ad746e0c5a5.zip
loplugin:cstylecast, involving pointer to incomplete type
Change-Id: Ib3127eb72ca72f55ce6082ebcb05fceb80608c47
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/calc/CTables.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/connectivity/source/drivers/calc/CTables.cxx b/connectivity/source/drivers/calc/CTables.cxx
index 8a2fae9e7fd4..5eb8888be5cd 100644
--- a/connectivity/source/drivers/calc/CTables.cxx
+++ b/connectivity/source/drivers/calc/CTables.cxx
@@ -17,6 +17,9 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <sal/config.h>
+
+#include <calc/CConnection.hxx>
#include "calc/CTables.hxx"
#include "calc/CTable.hxx"
#include "file/FCatalog.hxx"
@@ -37,7 +40,7 @@ using namespace ::com::sun::star::container;
sdbcx::ObjectType OCalcTables::createObject(const OUString& _rName)
{
- OCalcTable* pTable = new OCalcTable(this,(OCalcConnection*)static_cast<OFileCatalog&>(m_rParent).getConnection(),
+ OCalcTable* pTable = new OCalcTable(this, static_cast<OCalcConnection*>(static_cast<OFileCatalog&>(m_rParent).getConnection()),
_rName,OUString("TABLE"));
sdbcx::ObjectType xRet = pTable;
pTable->construct();