[Libreoffice-commits] core.git: connectivity/source

Stephan Bergmann sbergman at redhat.com
Fri Dec 5 02:17:06 PST 2014


 connectivity/source/drivers/calc/CTables.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 05a651d2dd574cf82aa81bb624904ad746e0c5a5
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Dec 5 11:16:20 2014 +0100

    loplugin:cstylecast, involving pointer to incomplete type
    
    Change-Id: Ib3127eb72ca72f55ce6082ebcb05fceb80608c47

diff --git a/connectivity/source/drivers/calc/CTables.cxx b/connectivity/source/drivers/calc/CTables.cxx
index 8a2fae9..5eb8888 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();


More information about the Libreoffice-commits mailing list