diff options
-rw-r--r-- | rdbmaker/source/codemaker/typemanager.cxx | 18 |
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(); |