diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-12-05 11:42:09 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-12-05 11:42:09 +0100 |
commit | 4e77f102e2cfbf72e15ed85a8f5dc3b9a5f6c0ef (patch) | |
tree | 89900cd3c48f80c36cf0b3c1b91c1e09528fe703 /connectivity | |
parent | e5a63993f68edb8182abbf50d24321ec22137889 (diff) |
loplugin:cstylecast, involving pointer to incomplete type
Change-Id: I614bd8433a105a2855e0efa039f4a9986197435f
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/inc/java/sql/JStatement.hxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/connectivity/source/inc/java/sql/JStatement.hxx b/connectivity/source/inc/java/sql/JStatement.hxx index 998c9f8c9286..b2b321ad78f4 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; |