summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorMathias Hasselmann <mathias@openismus.com>2013-03-08 13:03:12 +0100
committerMichael Meeks <michael.meeks@suse.com>2013-03-08 13:53:34 +0000
commitc20518286c5599a3a649f06450838490382f93fc (patch)
tree49ecdd88ccec4aab8b5e47184881dbd967630775 /connectivity
parente3645fad6b2ea48851bcf6fdfb895ced74a6d8cb (diff)
evoab2: Move get_e_source_registry() to EApi.cxx
get_e_source_registry() was declared in EApi.hxx, but defined in NDatabaseMetaData.cxx. This doesn't seem right, the header file and the purpose of the function indicate that it belongs into EApi.cxx. Change-Id: Iea3f11a901398aa3f467b96fbe8778c403887bcb
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/evoab2/EApi.cxx8
-rw-r--r--connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx8
2 files changed, 8 insertions, 8 deletions
diff --git a/connectivity/source/drivers/evoab2/EApi.cxx b/connectivity/source/drivers/evoab2/EApi.cxx
index 8e0d0dbd9433..987510c19d2b 100644
--- a/connectivity/source/drivers/evoab2/EApi.cxx
+++ b/connectivity/source/drivers/evoab2/EApi.cxx
@@ -143,4 +143,12 @@ bool EApiInit()
return false;
}
+ESourceRegistry *get_e_source_registry()
+{
+ static ESourceRegistry *theInstance;
+ if (!theInstance)
+ theInstance = e_source_registry_new_sync(NULL, NULL);
+ return theInstance;
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx b/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx
index bfe9f01e69f2..a214bd106019 100644
--- a/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx
+++ b/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx
@@ -1086,14 +1086,6 @@ Reference< XResultSet > SAL_CALL OEvoabDatabaseMetaData::getColumns(
return xResultSet;
}
-ESourceRegistry *get_e_source_registry()
-{
- static ESourceRegistry *theInstance;
- if (!theInstance)
- theInstance = e_source_registry_new_sync(NULL, NULL);
- return theInstance;
-}
-
// -------------------------------------------------------------------------
bool isSourceBackend(ESource *pSource, const char *backendname)
{