[Libreoffice-commits] core.git: connectivity/source
Stephan Bergmann
sbergman at redhat.com
Fri Dec 5 02:42:36 PST 2014
connectivity/source/inc/java/sql/JStatement.hxx | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
New commits:
commit 4e77f102e2cfbf72e15ed85a8f5dc3b9a5f6c0ef
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Dec 5 11:42:09 2014 +0100
loplugin:cstylecast, involving pointer to incomplete type
Change-Id: I614bd8433a105a2855e0efa039f4a9986197435f
diff --git a/connectivity/source/inc/java/sql/JStatement.hxx b/connectivity/source/inc/java/sql/JStatement.hxx
index 998c9f8..b2b321a 100644
--- a/connectivity/source/inc/java/sql/JStatement.hxx
+++ b/connectivity/source/inc/java/sql/JStatement.hxx
@@ -35,6 +35,7 @@
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <comphelper/broadcasthelper.hxx>
+#include <java/sql/Connection.hxx>
#include "java/sql/ConnectionLog.hxx"
namespace connectivity
@@ -47,9 +48,6 @@ namespace connectivity
::com::sun::star::sdbc::XGeneratedResultSet,
::com::sun::star::sdbc::XMultipleResults> java_sql_Statement_BASE;
- class java_sql_Connection;
-
-
//************ Class: java.sql.Statement
class java_sql_Statement_Base : public comphelper::OBaseMutex,
@@ -172,7 +170,7 @@ namespace connectivity
friend class OSubComponent<OStatement_BASE2, java_sql_Statement_BASE>;
public:
OStatement_BASE2(JNIEnv * pEnv, java_sql_Connection& _rCon ) : java_sql_Statement_Base( pEnv, _rCon ),
- OSubComponent<OStatement_BASE2, java_sql_Statement_BASE>((::cppu::OWeakObject*)(&_rCon), this){}
+ OSubComponent<OStatement_BASE2, java_sql_Statement_BASE>(static_cast<cppu::OWeakObject*>(&_rCon), this){}
// OComponentHelper
virtual void SAL_CALL disposing(void) SAL_OVERRIDE;
More information about the Libreoffice-commits
mailing list