summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/drivers')
-rw-r--r--connectivity/source/drivers/calc/Cservices.cxx2
-rw-r--r--connectivity/source/drivers/dbase/Dservices.cxx2
-rw-r--r--connectivity/source/drivers/evoab2/EApi.cxx5
-rw-r--r--connectivity/source/drivers/evoab2/NResultSet.cxx8
-rw-r--r--connectivity/source/drivers/evoab2/NServices.cxx2
-rw-r--r--connectivity/source/drivers/firebird/Connection.cxx4
-rw-r--r--connectivity/source/drivers/firebird/Services.cxx3
-rw-r--r--connectivity/source/drivers/flat/Eservices.cxx2
-rw-r--r--connectivity/source/drivers/hsqldb/Hservices.cxx2
-rw-r--r--connectivity/source/drivers/jdbc/jservices.cxx3
-rw-r--r--connectivity/source/drivers/mysql_jdbc/YTable.cxx3
-rw-r--r--connectivity/source/drivers/mysqlc/mysqlc_services.cxx3
-rw-r--r--connectivity/source/drivers/odbc/ORealDriver.cxx3
-rw-r--r--connectivity/source/drivers/odbc/oservices.cxx2
-rw-r--r--connectivity/source/drivers/postgresql/pq_connection.cxx7
-rw-r--r--connectivity/source/drivers/postgresql/pq_driver.cxx3
-rw-r--r--connectivity/source/drivers/postgresql/pq_statics.cxx4
-rw-r--r--connectivity/source/drivers/postgresql/pq_xcontainer.cxx7
-rw-r--r--connectivity/source/drivers/writer/Wservices.cxx3
19 files changed, 62 insertions, 6 deletions
diff --git a/connectivity/source/drivers/calc/Cservices.cxx b/connectivity/source/drivers/calc/Cservices.cxx
index 343c9fcb6305..91f58219cac3 100644
--- a/connectivity/source/drivers/calc/Cservices.cxx
+++ b/connectivity/source/drivers/calc/Cservices.cxx
@@ -36,6 +36,7 @@ typedef Reference< XSingleServiceFactory > (*createFactoryFunc)
rtl_ModuleCount*
);
+namespace {
struct ProviderRequest
{
@@ -75,6 +76,7 @@ struct ProviderRequest
void* getProvider() const { return xRet.get(); }
};
+}
extern "C" SAL_DLLPUBLIC_EXPORT void* connectivity_calc_component_getFactory(
const sal_Char* pImplementationName,
diff --git a/connectivity/source/drivers/dbase/Dservices.cxx b/connectivity/source/drivers/dbase/Dservices.cxx
index c269ddf997f0..9e24128912b2 100644
--- a/connectivity/source/drivers/dbase/Dservices.cxx
+++ b/connectivity/source/drivers/dbase/Dservices.cxx
@@ -36,6 +36,7 @@ typedef Reference< XSingleServiceFactory > (*createFactoryFunc)
rtl_ModuleCount*
);
+namespace {
struct ProviderRequest
{
@@ -75,6 +76,7 @@ struct ProviderRequest
void* getProvider() const { return xRet.get(); }
};
+}
extern "C" SAL_DLLPUBLIC_EXPORT void* dbase_component_getFactory(
const sal_Char* pImplementationName,
diff --git a/connectivity/source/drivers/evoab2/EApi.cxx b/connectivity/source/drivers/evoab2/EApi.cxx
index c802778cff2e..12096bdade87 100644
--- a/connectivity/source/drivers/evoab2/EApi.cxx
+++ b/connectivity/source/drivers/evoab2/EApi.cxx
@@ -38,12 +38,17 @@ static const char *eBookLibNames[] = {
typedef void (*SymbolFunc) ();
#define SYM_MAP(a) { #a, reinterpret_cast<SymbolFunc *>(&a) }
+
+namespace {
+
struct ApiMap
{
const char *sym_name;
SymbolFunc *ref_value;
};
+}
+
static const ApiMap aCommonApiMap[] =
{
SYM_MAP( eds_check_version ),
diff --git a/connectivity/source/drivers/evoab2/NResultSet.cxx b/connectivity/source/drivers/evoab2/NResultSet.cxx
index d6d55c272bfa..1341e5a33c68 100644
--- a/connectivity/source/drivers/evoab2/NResultSet.cxx
+++ b/connectivity/source/drivers/evoab2/NResultSet.cxx
@@ -375,8 +375,6 @@ bool isBookBackend( EBookClient *pBook, const char *backendname)
return isSourceBackend(pSource, backendname);
}
-}
-
class OEvoabVersion36Helper : public OEvoabVersionHelper
{
private:
@@ -490,8 +488,6 @@ protected:
}
};
-namespace {
-
ESource * findSource( const char *id )
{
ESourceList *pSourceList = nullptr;
@@ -519,8 +515,6 @@ bool isAuthRequired( EBook *pBook )
"auth" ) != nullptr;
}
-}
-
class OEvoabVersion35Helper : public OEvoabVersionHelper
{
private:
@@ -610,6 +604,8 @@ public:
}
};
+}
+
OEvoabResultSet::OEvoabResultSet( OCommonStatement* pStmt, OEvoabConnection *pConnection )
:OResultSet_BASE(m_aMutex)
,::comphelper::OPropertyContainer( OResultSet_BASE::rBHelper )
diff --git a/connectivity/source/drivers/evoab2/NServices.cxx b/connectivity/source/drivers/evoab2/NServices.cxx
index 94b6f7867438..afc6291307cb 100644
--- a/connectivity/source/drivers/evoab2/NServices.cxx
+++ b/connectivity/source/drivers/evoab2/NServices.cxx
@@ -37,6 +37,7 @@ typedef Reference< XSingleServiceFactory > (*createFactoryFunc)
rtl_ModuleCount*
);
+namespace {
struct ProviderRequest
{
@@ -77,6 +78,7 @@ struct ProviderRequest
void* getProvider() const { return xRet.get(); }
};
+}
extern "C" SAL_DLLPUBLIC_EXPORT void* evoab2_component_getFactory(
const sal_Char* pImplementationName,
diff --git a/connectivity/source/drivers/firebird/Connection.cxx b/connectivity/source/drivers/firebird/Connection.cxx
index dd4917634dab..b3b5ac9ee1da 100644
--- a/connectivity/source/drivers/firebird/Connection.cxx
+++ b/connectivity/source/drivers/firebird/Connection.cxx
@@ -109,6 +109,8 @@ Connection::~Connection()
close();
}
+namespace {
+
struct ConnectionGuard
{
oslInterlockedCount& m_refCount;
@@ -123,6 +125,8 @@ struct ConnectionGuard
}
};
+}
+
void Connection::construct(const OUString& url, const Sequence< PropertyValue >& info)
{
ConnectionGuard aGuard(m_refCount);
diff --git a/connectivity/source/drivers/firebird/Services.cxx b/connectivity/source/drivers/firebird/Services.cxx
index 69b05e471263..f85d5dbb48d5 100644
--- a/connectivity/source/drivers/firebird/Services.cxx
+++ b/connectivity/source/drivers/firebird/Services.cxx
@@ -38,6 +38,8 @@ typedef Reference< XSingleServiceFactory > (*createFactoryFunc)
rtl_ModuleCount* _pTemp
);
+namespace {
+
struct ProviderRequest
{
Reference< XSingleServiceFactory > xRet;
@@ -76,6 +78,7 @@ struct ProviderRequest
void* getProvider() const { return xRet.get(); }
};
+}
extern "C" SAL_DLLPUBLIC_EXPORT void* firebird_sdbc_component_getFactory(
const sal_Char* pImplementationName,
diff --git a/connectivity/source/drivers/flat/Eservices.cxx b/connectivity/source/drivers/flat/Eservices.cxx
index 62884acef137..4b8b6c4b2879 100644
--- a/connectivity/source/drivers/flat/Eservices.cxx
+++ b/connectivity/source/drivers/flat/Eservices.cxx
@@ -36,6 +36,7 @@ typedef Reference< XSingleServiceFactory > (*createFactoryFunc)
rtl_ModuleCount*
);
+namespace {
struct ProviderRequest
{
@@ -75,6 +76,7 @@ struct ProviderRequest
void* getProvider() const { return xRet.get(); }
};
+}
extern "C" SAL_DLLPUBLIC_EXPORT void* flat_component_getFactory(
const sal_Char* pImplementationName,
diff --git a/connectivity/source/drivers/hsqldb/Hservices.cxx b/connectivity/source/drivers/hsqldb/Hservices.cxx
index a7ce2346374a..b41389a6d118 100644
--- a/connectivity/source/drivers/hsqldb/Hservices.cxx
+++ b/connectivity/source/drivers/hsqldb/Hservices.cxx
@@ -37,6 +37,7 @@ typedef Reference< XSingleServiceFactory > (*createFactoryFunc)
rtl_ModuleCount*
);
+namespace {
struct ProviderRequest
{
@@ -76,6 +77,7 @@ struct ProviderRequest
void* getProvider() const { return xRet.get(); }
};
+}
extern "C" SAL_DLLPUBLIC_EXPORT void* hsqldb_component_getFactory(
const sal_Char* pImplementationName,
diff --git a/connectivity/source/drivers/jdbc/jservices.cxx b/connectivity/source/drivers/jdbc/jservices.cxx
index 281d8936d488..3044724735db 100644
--- a/connectivity/source/drivers/jdbc/jservices.cxx
+++ b/connectivity/source/drivers/jdbc/jservices.cxx
@@ -36,6 +36,7 @@ typedef Reference< XSingleServiceFactory > (*createFactoryFunc)
rtl_ModuleCount*
);
+namespace {
struct ProviderRequest
{
@@ -75,6 +76,8 @@ struct ProviderRequest
void* getProvider() const { return xRet.get(); }
};
+}
+
extern "C" SAL_DLLPUBLIC_EXPORT void* jdbc_component_getFactory(
const sal_Char* pImplementationName,
void* pServiceManager,
diff --git a/connectivity/source/drivers/mysql_jdbc/YTable.cxx b/connectivity/source/drivers/mysql_jdbc/YTable.cxx
index 6eeaf3a23897..0db740478993 100644
--- a/connectivity/source/drivers/mysql_jdbc/YTable.cxx
+++ b/connectivity/source/drivers/mysql_jdbc/YTable.cxx
@@ -55,6 +55,8 @@ namespace connectivity
{
namespace mysql
{
+namespace
+{
class OMySQLKeysHelper : public OKeysHelper
{
protected:
@@ -69,6 +71,7 @@ public:
};
}
}
+}
OMySQLTable::OMySQLTable(sdbcx::OCollection* _pTables, const Reference<XConnection>& _xConnection)
: OTableHelper(_pTables, _xConnection, true)
diff --git a/connectivity/source/drivers/mysqlc/mysqlc_services.cxx b/connectivity/source/drivers/mysqlc/mysqlc_services.cxx
index d23cf66aba06..56a2242e5e50 100644
--- a/connectivity/source/drivers/mysqlc/mysqlc_services.cxx
+++ b/connectivity/source/drivers/mysqlc/mysqlc_services.cxx
@@ -35,6 +35,8 @@ typedef Reference<XSingleServiceFactory> (*createFactoryFunc)(
::cppu::ComponentInstantiation pCreateFunction, const Sequence<OUString>& rServiceNames,
rtl_ModuleCount*);
+namespace
+{
struct ProviderRequest
{
Reference<XSingleServiceFactory> xRet;
@@ -65,6 +67,7 @@ struct ProviderRequest
void* getProvider() const { return xRet.get(); }
};
+}
extern "C" SAL_DLLPUBLIC_EXPORT void* component_getFactory(const sal_Char* pImplementationName,
void* pServiceManager,
diff --git a/connectivity/source/drivers/odbc/ORealDriver.cxx b/connectivity/source/drivers/odbc/ORealDriver.cxx
index 8b76f4cf1cc6..1c7bc80ae203 100644
--- a/connectivity/source/drivers/odbc/ORealDriver.cxx
+++ b/connectivity/source/drivers/odbc/ORealDriver.cxx
@@ -26,6 +26,8 @@ namespace connectivity
{
namespace odbc
{
+ namespace {
+
class ORealObdcDriver : public ODBCDriver
{
protected:
@@ -35,6 +37,7 @@ namespace connectivity
explicit ORealObdcDriver(const css::uno::Reference< css::lang::XMultiServiceFactory >& _rxFactory) : ODBCDriver(_rxFactory) {}
};
+ }
oslGenericFunction ORealObdcDriver::getOdbcFunction(ODBC3SQLFunctionId _nIndex) const
{
diff --git a/connectivity/source/drivers/odbc/oservices.cxx b/connectivity/source/drivers/odbc/oservices.cxx
index 71fd857ec19e..9c4994172422 100644
--- a/connectivity/source/drivers/odbc/oservices.cxx
+++ b/connectivity/source/drivers/odbc/oservices.cxx
@@ -37,6 +37,7 @@ typedef Reference< XSingleServiceFactory > (*createFactoryFunc)
rtl_ModuleCount*
);
+namespace {
struct ProviderRequest
{
@@ -76,6 +77,7 @@ struct ProviderRequest
void* getProvider() const { return xRet.get(); }
};
+}
extern "C" SAL_DLLPUBLIC_EXPORT void* odbc_component_getFactory(
const sal_Char* pImplementationName,
diff --git a/connectivity/source/drivers/postgresql/pq_connection.cxx b/connectivity/source/drivers/postgresql/pq_connection.cxx
index 56670cef1aa5..868a011584c5 100644
--- a/connectivity/source/drivers/postgresql/pq_connection.cxx
+++ b/connectivity/source/drivers/postgresql/pq_connection.cxx
@@ -94,6 +94,7 @@ using com::sun::star::sdbc::XDatabaseMetaData;
namespace pq_sdbc_driver
{
+namespace {
// Helper class for statement lifetime management
class ClosableReference : public cppu::WeakImplHelper< css::uno::XReference >
@@ -116,6 +117,8 @@ public:
}
};
+}
+
static OUString ConnectionGetImplementationName()
{
return "org.openoffice.comp.connectivity.pq.Connection.noext";
@@ -393,6 +396,8 @@ void Connection::clearWarnings()
{
}
+namespace {
+
class cstr_vector
{
std::vector<char*> values;
@@ -426,6 +431,8 @@ public:
char const** c_array() const { return const_cast <const char**>(values.data()); }
};
+}
+
static void properties2arrays( const Sequence< PropertyValue > & args,
const Reference< XTypeConverter> &tc,
rtl_TextEncoding enc,
diff --git a/connectivity/source/drivers/postgresql/pq_driver.cxx b/connectivity/source/drivers/postgresql/pq_driver.cxx
index b11dc491d016..a8e915a5cc67 100644
--- a/connectivity/source/drivers/postgresql/pq_driver.cxx
+++ b/connectivity/source/drivers/postgresql/pq_driver.cxx
@@ -158,6 +158,7 @@ static Reference< XInterface > DriverCreateInstance( const Reference < XComponen
return ret;
}
+namespace {
class OOneInstanceComponentFactory :
public MutexHolder,
@@ -212,6 +213,8 @@ private:
Reference< XComponentContext > m_defaultContext;
};
+}
+
Reference< XInterface > OOneInstanceComponentFactory::createInstanceWithArgumentsAndContext(
Sequence< Any > const &, const Reference< XComponentContext > & ctx )
{
diff --git a/connectivity/source/drivers/postgresql/pq_statics.cxx b/connectivity/source/drivers/postgresql/pq_statics.cxx
index 564ab7910567..1b8c1cc116e3 100644
--- a/connectivity/source/drivers/postgresql/pq_statics.cxx
+++ b/connectivity/source/drivers/postgresql/pq_statics.cxx
@@ -51,6 +51,8 @@ using com::sun::star::beans::Property;
namespace pq_sdbc_driver
{
+namespace {
+
struct DefColumnMetaData
{
const sal_Char * columnName;
@@ -83,6 +85,8 @@ struct PropertyDefEx : public PropertyDef
sal_Int32 attribute;
};
+}
+
static cppu::IPropertyArrayHelper * createPropertyArrayHelper(
PropertyDef const *props, int count , sal_Int16 attr )
{
diff --git a/connectivity/source/drivers/postgresql/pq_xcontainer.cxx b/connectivity/source/drivers/postgresql/pq_xcontainer.cxx
index 2082816813fd..147f5c17a465 100644
--- a/connectivity/source/drivers/postgresql/pq_xcontainer.cxx
+++ b/connectivity/source/drivers/postgresql/pq_xcontainer.cxx
@@ -66,6 +66,8 @@ using com::sun::star::lang::XEventListener;
namespace pq_sdbc_driver
{
+namespace {
+
class ReplacedBroadcaster : public EventBroadcastHelper
{
ContainerEvent m_event;
@@ -131,6 +133,8 @@ public:
}
};
+}
+
Container::Container(
const ::rtl::Reference< comphelper::RefCountedMutex > & refMutex,
const css::uno::Reference< css::sdbc::XConnection > & origin,
@@ -201,6 +205,7 @@ sal_Int32 Container::getCount()
return m_values.size();
}
+namespace {
class ContainerEnumeration : public ::cppu::WeakImplHelper< XEnumeration >
{
@@ -219,6 +224,8 @@ public:
};
+}
+
sal_Bool ContainerEnumeration::hasMoreElements()
{
return static_cast<int>(m_vec.size()) > m_index +1;
diff --git a/connectivity/source/drivers/writer/Wservices.cxx b/connectivity/source/drivers/writer/Wservices.cxx
index 10e0e3ef32e7..69f88016231d 100644
--- a/connectivity/source/drivers/writer/Wservices.cxx
+++ b/connectivity/source/drivers/writer/Wservices.cxx
@@ -28,6 +28,8 @@ using createFactoryFunc = uno::Reference<lang::XSingleServiceFactory> (*)(
const OUString& rComponentName, ::cppu::ComponentInstantiation pCreateFunction,
const uno::Sequence<OUString>& rServiceNames, rtl_ModuleCount*);
+namespace
+{
struct ProviderRequest
{
private:
@@ -60,6 +62,7 @@ public:
uno::XInterface* getProvider() const { return xRet.get(); }
};
+}
extern "C" SAL_DLLPUBLIC_EXPORT void*
connectivity_writer_component_getFactory(const sal_Char* pImplementationName, void* pServiceManager,