summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/evoab2
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-01-17 18:17:00 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-01-20 09:06:46 +0100
commit141b01ac65d5922aacdf6010043eadc7c28304a5 (patch)
tree8080be6ba72a3d127de8702511d049512d485f11 /connectivity/source/drivers/evoab2
parent876413440d051f7bae8b3d222320f4bc3b617b79 (diff)
Some more loplugin:cstylecast: connectivity
Change-Id: Iee1d11aef454284dbe050780c4308917c1a2b36f
Diffstat (limited to 'connectivity/source/drivers/evoab2')
-rw-r--r--connectivity/source/drivers/evoab2/EApi.cxx2
-rw-r--r--connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx2
-rw-r--r--connectivity/source/drivers/evoab2/NResultSet.cxx2
-rw-r--r--connectivity/source/drivers/evoab2/NStatement.hxx4
4 files changed, 5 insertions, 5 deletions
diff --git a/connectivity/source/drivers/evoab2/EApi.cxx b/connectivity/source/drivers/evoab2/EApi.cxx
index 410422ca35d0..1bc88aeb08ab 100644
--- a/connectivity/source/drivers/evoab2/EApi.cxx
+++ b/connectivity/source/drivers/evoab2/EApi.cxx
@@ -34,7 +34,7 @@ static const char *eBookLibNames[] = {
typedef void (*SymbolFunc) (void);
-#define SYM_MAP(a) { #a, (SymbolFunc *)&a }
+#define SYM_MAP(a) { #a, reinterpret_cast<SymbolFunc *>(&a) }
struct ApiMap
{
const char *sym_name;
diff --git a/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx b/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx
index c53523b5d479..90dac61982d4 100644
--- a/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx
+++ b/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx
@@ -1168,7 +1168,7 @@ Reference< XResultSet > SAL_CALL OEvoabDatabaseMetaData::getTables(
aRows.push_back(aRow);
}
- g_list_foreach (pSources, (GFunc)g_object_unref, NULL);
+ g_list_foreach (pSources, reinterpret_cast<GFunc>(g_object_unref), NULL);
g_list_free (pSources);
}
else
diff --git a/connectivity/source/drivers/evoab2/NResultSet.cxx b/connectivity/source/drivers/evoab2/NResultSet.cxx
index 4cacbb173b92..acc92f015164 100644
--- a/connectivity/source/drivers/evoab2/NResultSet.cxx
+++ b/connectivity/source/drivers/evoab2/NResultSet.cxx
@@ -399,7 +399,7 @@ public:
break;
}
}
- g_list_foreach (pSources, (GFunc)g_object_unref, NULL);
+ g_list_foreach (pSources, reinterpret_cast<GFunc>(g_object_unref), NULL);
g_list_free (pSources);
if (!id)
return NULL;
diff --git a/connectivity/source/drivers/evoab2/NStatement.hxx b/connectivity/source/drivers/evoab2/NStatement.hxx
index bc6467c41167..42df8b1c588a 100644
--- a/connectivity/source/drivers/evoab2/NStatement.hxx
+++ b/connectivity/source/drivers/evoab2/NStatement.hxx
@@ -40,6 +40,7 @@
#include <comphelper/propertycontainer.hxx>
#include "EApi.h"
+#include <NConnection.hxx>
#include <list>
@@ -47,7 +48,6 @@ namespace connectivity
{
namespace evoab
{
- class OEvoabConnection;
typedef ::cppu::WeakComponentImplHelper2 < ::com::sun::star::sdbc::XWarningsSupplier
, ::com::sun::star::sdbc::XCloseable
> OCommonStatement_IBase;
@@ -230,7 +230,7 @@ namespace connectivity
impl_executeQuery_throw( const QueryData& _rData );
::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >
- impl_getConnection() { return ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >( (::com::sun::star::sdbc::XConnection*)m_pConnection ); }
+ impl_getConnection() { return ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >( m_pConnection ); }
OUString
impl_getColumnRefColumnName_throw( const ::connectivity::OSQLParseNode& _rColumnRef );