summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-06-03 14:03:11 +0000
committerOliver Bolte <obo@openoffice.org>2004-06-03 14:03:11 +0000
commit1d1ebdf5c1a6b5da3e6083fe7129f7daac2b87d3 (patch)
tree96e725eb0a6dce5f535d83e789fb72f14e4e0053
parentd4fa15c6313719e7b6351b7cd6f179d06cc7597d (diff)
INTEGRATION: CWS sb18 (1.2.100); FILE MERGED
2004/05/24 09:31:14 sb 1.2.100.1: #i21150# Adapted to new registry type reader.
-rw-r--r--rdbmaker/source/codemaker/typemanager.cxx18
1 files changed, 4 insertions, 14 deletions
diff --git a/rdbmaker/source/codemaker/typemanager.cxx b/rdbmaker/source/codemaker/typemanager.cxx
index ce524f7973a8..f73e3566ed01 100644
--- a/rdbmaker/source/codemaker/typemanager.cxx
+++ b/rdbmaker/source/codemaker/typemanager.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: typemanager.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: jsc $ $Date: 2001-08-17 13:09:49 $
+ * last change: $Author: obo $ $Date: 2004-06-03 15:03:11 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -69,12 +69,6 @@
using namespace rtl;
-RegistryTypeReaderLoader & getRegistryTypeReaderLoader()
-{
- static RegistryTypeReaderLoader aLoader;
- return aLoader;
-}
-
TypeManager::TypeManager()
{
m_pImpl = new TypeManagerImpl();
@@ -220,9 +214,7 @@ TypeReader RegistryTypeManager::getTypeReader(const OString& name)
sal_uInt8* pBuffer = (sal_uInt8*)rtl_allocateMemory(valueSize);
if (!key.getValue(OUString(), pBuffer))
{
- RegistryTypeReaderLoader & rReaderLoader = getRegistryTypeReaderLoader();
-
- reader = TypeReader(rReaderLoader, pBuffer, valueSize, sal_True);
+ reader = TypeReader(pBuffer, valueSize, sal_True);
}
rtl_freeMemory(pBuffer);
}
@@ -249,9 +241,7 @@ RTTypeClass RegistryTypeManager::getTypeClass(const OString& name)
sal_uInt8* pBuffer = (sal_uInt8*)rtl_allocateMemory(valueSize);
if (!key.getValue(OUString(), pBuffer))
{
- RegistryTypeReaderLoader & rReaderLoader = getRegistryTypeReaderLoader();
-
- TypeReader reader(rReaderLoader, pBuffer, valueSize, sal_False);
+ TypeReader reader(pBuffer, valueSize, sal_False);
RTTypeClass ret = reader.getTypeClass();