diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2011-03-02 22:15:02 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2011-03-02 22:15:02 +0100 |
commit | 389bc73b5f34399fa8c11c891755238a3417af50 (patch) | |
tree | 2a620177e36273aa4c563379563d7c4be315bb2a /rdbmaker | |
parent | 933e22880b2d5d9c6dd6e3e05c30d6f0ced55508 (diff) |
Remove "using namespace ::rtl"
Diffstat (limited to 'rdbmaker')
-rw-r--r-- | rdbmaker/source/codemaker/dependency.cxx | 4 | ||||
-rw-r--r-- | rdbmaker/source/codemaker/options.cxx | 3 | ||||
-rw-r--r-- | rdbmaker/source/codemaker/typemanager.cxx | 5 | ||||
-rw-r--r-- | rdbmaker/source/rdbmaker/rdbmaker.cxx | 7 | ||||
-rw-r--r-- | rdbmaker/source/rdbmaker/rdboptions.cxx | 3 | ||||
-rw-r--r-- | rdbmaker/source/rdbmaker/rdbtype.cxx | 35 | ||||
-rw-r--r-- | rdbmaker/source/rdbmaker/specialtypemanager.cxx | 3 | ||||
-rw-r--r-- | rdbmaker/source/rdbmaker/typeblop.cxx | 3 |
8 files changed, 19 insertions, 44 deletions
diff --git a/rdbmaker/source/codemaker/dependency.cxx b/rdbmaker/source/codemaker/dependency.cxx index 866abb452d5d..8df5fd4bbeff 100644 --- a/rdbmaker/source/codemaker/dependency.cxx +++ b/rdbmaker/source/codemaker/dependency.cxx @@ -30,8 +30,8 @@ #include <rtl/alloc.h> #include <codemaker/dependency.hxx> -using namespace rtl; - +using ::rtl::OString; +using ::rtl::OStringBuffer; TypeDependency::TypeDependency() { m_pImpl = new TypeDependencyImpl(); diff --git a/rdbmaker/source/codemaker/options.cxx b/rdbmaker/source/codemaker/options.cxx index 0d87f38d8786..7090e282b715 100644 --- a/rdbmaker/source/codemaker/options.cxx +++ b/rdbmaker/source/codemaker/options.cxx @@ -28,8 +28,7 @@ #include <codemaker/options.hxx> -using namespace rtl; - +using ::rtl::OString; Options::Options() { } diff --git a/rdbmaker/source/codemaker/typemanager.cxx b/rdbmaker/source/codemaker/typemanager.cxx index f4fffecb3d31..075b8f2a30dd 100644 --- a/rdbmaker/source/codemaker/typemanager.cxx +++ b/rdbmaker/source/codemaker/typemanager.cxx @@ -30,8 +30,9 @@ #include <osl/file.hxx> #include <codemaker/typemanager.hxx> -using namespace rtl; - +using ::rtl::OUString; +using ::rtl::OString; +using ::rtl::OStringToOUString; TypeManager::TypeManager() { m_pImpl = new TypeManagerImpl(); diff --git a/rdbmaker/source/rdbmaker/rdbmaker.cxx b/rdbmaker/source/rdbmaker/rdbmaker.cxx index 35b0f6bd843d..d9d5b4b506e7 100644 --- a/rdbmaker/source/rdbmaker/rdbmaker.cxx +++ b/rdbmaker/source/rdbmaker/rdbmaker.cxx @@ -53,9 +53,14 @@ #define PATH_DELEMITTER '/' -using namespace rtl; using namespace osl; +using ::rtl::OUString; +using ::rtl::OString; +using ::rtl::OStringBuffer; +using ::rtl::OUStringToOString; +using ::rtl::OStringToOUString; + FileStream listFile; RegistryKey rootKey; Registry regFile; diff --git a/rdbmaker/source/rdbmaker/rdboptions.cxx b/rdbmaker/source/rdbmaker/rdboptions.cxx index 7326da281152..cc78f7a7e1da 100644 --- a/rdbmaker/source/rdbmaker/rdboptions.cxx +++ b/rdbmaker/source/rdbmaker/rdboptions.cxx @@ -30,8 +30,7 @@ #include "rdboptions.hxx" -using namespace rtl; - +using ::rtl::OString; sal_Bool RdbOptions::initOptions(int ac, char* av[], sal_Bool bCmdFile) throw( IllegalArgument ) { diff --git a/rdbmaker/source/rdbmaker/rdbtype.cxx b/rdbmaker/source/rdbmaker/rdbtype.cxx index 9c10bf05647c..7c76ee6cd564 100644 --- a/rdbmaker/source/rdbmaker/rdbtype.cxx +++ b/rdbmaker/source/rdbmaker/rdbtype.cxx @@ -34,8 +34,9 @@ #include "rdbtype.hxx" #include "rdboptions.hxx" -using namespace rtl; - +using ::rtl::OUString; +using ::rtl::OString; +using ::rtl::OStringToOUString; sal_Bool isBaseType(const OString& type) { if ( type.equals("long") || @@ -119,12 +120,6 @@ sal_Bool produceType(const OString& typeName, { if (typeDependencies.isGenerated(typeName) ) return sal_True; -/* - RegistryKey typeKey = typeMgr.getTypeKey(typeName); - - if (!typeKey.isValid()) - return sal_False; -*/ if( !checkTypeDependencies(typeMgr, typeDependencies, typeName, bDepend)) return sal_False; @@ -135,26 +130,6 @@ sal_Bool produceType(const OString& typeName, o << typeName.getStr() << "\n"; } else { -/* - RegValueType valueType; - sal_uInt32 valueSize; - - if (typeKey.getValueInfo(OUString(), &valueType, &valueSize)) - { - if (typeName.equals("/")) - return sal_True; - else - return sal_False; - } - - sal_uInt8* pBuffer = (sal_uInt8*)rtl_allocateMemory(valueSize); - - if (typeKey.getValue(OUString(), pBuffer)) - { - rtl_freeMemory(pBuffer); - return sal_False; - } -*/ TypeReader reader = typeMgr.getTypeReader(typeName); if (!reader.isValid()) @@ -170,18 +145,14 @@ sal_Bool produceType(const OString& typeName, RegistryKey typeKey; if ( regKey.createKey( OStringToOUString(typeName, RTL_TEXTENCODING_UTF8), typeKey) ) { -// rtl_freeMemory(pBuffer); return sal_False; } if ( typeKey.setValue(OUString(), RG_VALUETYPE_BINARY, (void*)reader.getBlop(), reader.getBlopSize()) ) -// if ( typeKey.setValue(OUString(), valueType, pBuffer, valueSize) ) { -// rtl_freeMemory(pBuffer); return sal_False; } -// rtl_freeMemory(pBuffer); } } diff --git a/rdbmaker/source/rdbmaker/specialtypemanager.cxx b/rdbmaker/source/rdbmaker/specialtypemanager.cxx index 153f4e68de57..a5fe51b1acd5 100644 --- a/rdbmaker/source/rdbmaker/specialtypemanager.cxx +++ b/rdbmaker/source/rdbmaker/specialtypemanager.cxx @@ -36,8 +36,7 @@ sal_Bool SAL_CALL initTypeMapper( const sal_Char* pRegName ); sal_uInt32 SAL_CALL getTypeBlop(const sal_Char* pTypeName, sal_uInt8** pBlop); } -using namespace rtl; - +using ::rtl::OString; SpecialTypeManager::SpecialTypeManager() { m_pImpl = new SpecialTypeManagerImpl(); diff --git a/rdbmaker/source/rdbmaker/typeblop.cxx b/rdbmaker/source/rdbmaker/typeblop.cxx index 0eb9115e2822..8c0c80244dde 100644 --- a/rdbmaker/source/rdbmaker/typeblop.cxx +++ b/rdbmaker/source/rdbmaker/typeblop.cxx @@ -50,7 +50,8 @@ using namespace com::sun::star::reflection; using namespace com::sun::star::lang; using namespace com::sun::star::container; using namespace cppu; -using namespace rtl; + +using ::rtl::OUString; static Reference< XHierarchicalNameAccess > xNameAccess; |