diff options
author | Olivier Hallot <olivier.hallot@documentfoundation.org> | 2012-01-02 15:58:10 -0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-01-02 19:17:17 +0100 |
commit | 85d1ce27ad9ce7a3740bd8bbbaf1d3abe643ba10 (patch) | |
tree | 9c27a22d1d2ccb1bd78658ee4152c30ea4a70137 /rdbmaker/source/codemaker | |
parent | 829db12d7e3e93b4a44f79b39a0a9f0630439109 (diff) |
Fix for fdo43460 Part XXVII getLength() to isEmpty()
Please find attached a partial fix for Easy Hack FDO43460
Part XXVII
Modules
padmin, pyuno, rdbmaker, regexp, registry, rsc, sal
Diffstat (limited to 'rdbmaker/source/codemaker')
-rw-r--r-- | rdbmaker/source/codemaker/dependency.cxx | 8 | ||||
-rw-r--r-- | rdbmaker/source/codemaker/global.cxx | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/rdbmaker/source/codemaker/dependency.cxx b/rdbmaker/source/codemaker/dependency.cxx index 8df5fd4bbeff..0ca56c33c88d 100644 --- a/rdbmaker/source/codemaker/dependency.cxx +++ b/rdbmaker/source/codemaker/dependency.cxx @@ -60,7 +60,7 @@ sal_Bool TypeDependency::insert(const OString& type, const OString& depend, sal_ { sal_Bool ret = sal_False; - if (type.getLength() > 0 && depend.getLength() > 0) + if (!type.isEmpty() && !depend.isEmpty()) { if (m_pImpl->m_dependencies.count(type) > 0) { @@ -87,7 +87,7 @@ sal_Bool TypeDependency::insert(const OString& type, const OString& depend, sal_ TypeUsingSet TypeDependency::getDependencies(const OString& type) { - if (type.getLength() > 0) + if (!type.isEmpty()) { if (m_pImpl->m_dependencies.count(type) > 0) { @@ -100,7 +100,7 @@ TypeUsingSet TypeDependency::getDependencies(const OString& type) sal_Bool TypeDependency::hasDependencies(const OString& type) { - if (type.getLength() > 0) + if (!type.isEmpty()) { if (m_pImpl->m_dependencies.count(type) > 0) { @@ -150,7 +150,7 @@ static sal_Bool checkFieldDependencies(TypeManager& typeMgr, TypeDependency& dep { fieldType = reader.getFieldType(i); - if (fieldType.getLength() > 0) + if (!fieldType.isEmpty()) { dependencies.insert(type, fieldType, TYPEUSE_MEMBER); checkTypeDependencies(typeMgr, dependencies, fieldType); diff --git a/rdbmaker/source/codemaker/global.cxx b/rdbmaker/source/codemaker/global.cxx index 6cf654412f7a..0f4e2ab51657 100644 --- a/rdbmaker/source/codemaker/global.cxx +++ b/rdbmaker/source/codemaker/global.cxx @@ -130,7 +130,7 @@ sal_Bool FileStream::isValid() void FileStream::open(const OString& name, FileAccessMode mode) { - if ( name.getLength() > 0 ) + if ( !name.isEmpty() ) { m_name = name; m_pFile = fopen(m_name.getStr(), checkAccessMode(mode)); |