summaryrefslogtreecommitdiff
path: root/rdbmaker
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
commit774f2b34653cbf9aa2e4c3ae28ab578f417db140 (patch)
treed86260234b393eb07d19204b53a47a80f8052979 /rdbmaker
parentbf969aab9977a46cf9c9ce2738873c735b3e7d1d (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.
Diffstat (limited to 'rdbmaker')
-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 a984bd93b..fc1f0750b 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();