diff options
author | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-01-08 09:52:25 -0200 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-01-10 23:08:01 -0200 |
commit | db08c1ac5ed566fbec4d2ce8345ed483fa8bf9ab (patch) | |
tree | bc321e6f2f15c95b3bba78f1e2f8514f0eeb894a /sd/source/ui/framework/configuration | |
parent | 5e7d38fe5b8115fe4860fe3e8a77d298cf67391b (diff) |
Fix for fdo43460 Part XXXI getLength() to isEmpty()
Part XXXI
Modules
sd
Diffstat (limited to 'sd/source/ui/framework/configuration')
4 files changed, 7 insertions, 7 deletions
diff --git a/sd/source/ui/framework/configuration/Configuration.cxx b/sd/source/ui/framework/configuration/Configuration.cxx index a01c584f6826..16b25eb0d276 100644 --- a/sd/source/ui/framework/configuration/Configuration.cxx +++ b/sd/source/ui/framework/configuration/Configuration.cxx @@ -158,7 +158,7 @@ void SAL_CALL Configuration::addResource (const Reference<XResourceId>& rxResour { ThrowIfDisposed(); - if ( ! rxResourceId.is() || rxResourceId->getResourceURL().getLength()==0) + if ( ! rxResourceId.is() || rxResourceId->getResourceURL().isEmpty()) throw ::com::sun::star::lang::IllegalArgumentException(); if (mpResourceContainer->find(rxResourceId) == mpResourceContainer->end()) @@ -181,7 +181,7 @@ void SAL_CALL Configuration::removeResource (const Reference<XResourceId>& rxRes { ThrowIfDisposed(); - if ( ! rxResourceId.is() || rxResourceId->getResourceURL().getLength()==0) + if ( ! rxResourceId.is() || rxResourceId->getResourceURL().isEmpty()) throw ::com::sun::star::lang::IllegalArgumentException(); ResourceContainer::iterator iResource (mpResourceContainer->find(rxResourceId)); @@ -209,7 +209,7 @@ Sequence<Reference<XResourceId> > SAL_CALL Configuration::getResources ( ::osl::MutexGuard aGuard (maMutex); ThrowIfDisposed(); - bool bFilterResources (rsResourceURLPrefix.getLength() > 0); + bool bFilterResources (!rsResourceURLPrefix.isEmpty()); // Collect the matching resources in a vector. ::std::vector<Reference<XResourceId> > aResources; diff --git a/sd/source/ui/framework/configuration/GenericConfigurationChangeRequest.cxx b/sd/source/ui/framework/configuration/GenericConfigurationChangeRequest.cxx index 316a81abb2ec..498f22b8d02c 100644 --- a/sd/source/ui/framework/configuration/GenericConfigurationChangeRequest.cxx +++ b/sd/source/ui/framework/configuration/GenericConfigurationChangeRequest.cxx @@ -46,7 +46,7 @@ GenericConfigurationChangeRequest::GenericConfigurationChangeRequest ( mxResourceId(rxResourceId), meMode(eMode) { - if ( ! rxResourceId.is() || rxResourceId->getResourceURL().getLength()==0) + if ( ! rxResourceId.is() || rxResourceId->getResourceURL().isEmpty()) throw ::com::sun::star::lang::IllegalArgumentException(); } diff --git a/sd/source/ui/framework/configuration/ResourceFactoryManager.cxx b/sd/source/ui/framework/configuration/ResourceFactoryManager.cxx index 616f409ecd4c..f4c0965b5d6e 100644 --- a/sd/source/ui/framework/configuration/ResourceFactoryManager.cxx +++ b/sd/source/ui/framework/configuration/ResourceFactoryManager.cxx @@ -79,7 +79,7 @@ void ResourceFactoryManager::AddFactory ( { if ( ! rxFactory.is()) throw lang::IllegalArgumentException(); - if (rsURL.getLength() == 0) + if (rsURL.isEmpty()) throw lang::IllegalArgumentException(); ::osl::MutexGuard aGuard (maMutex); @@ -102,7 +102,7 @@ void ResourceFactoryManager::RemoveFactoryForURL ( const OUString& rsURL) throw (RuntimeException) { - if (rsURL.getLength() == 0) + if (rsURL.isEmpty()) throw lang::IllegalArgumentException(); ::osl::MutexGuard aGuard (maMutex); diff --git a/sd/source/ui/framework/configuration/ResourceId.cxx b/sd/source/ui/framework/configuration/ResourceId.cxx index 2957dfae7671..83b531ef1f16 100644 --- a/sd/source/ui/framework/configuration/ResourceId.cxx +++ b/sd/source/ui/framework/configuration/ResourceId.cxx @@ -114,7 +114,7 @@ ResourceId::ResourceId ( mpURL() { // Handle the special case of an empty resource URL. - if (rsResourceURL.getLength() == 0) + if (rsResourceURL.isEmpty()) maResourceURLs.clear(); ParseResourceURL(); } |