summaryrefslogtreecommitdiff
path: root/sd/source/ui/framework
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@alta.org.br>2012-01-08 09:52:25 -0200
committerOlivier Hallot <olivier.hallot@alta.org.br>2012-01-10 23:08:01 -0200
commitdb08c1ac5ed566fbec4d2ce8345ed483fa8bf9ab (patch)
treebc321e6f2f15c95b3bba78f1e2f8514f0eeb894a /sd/source/ui/framework
parent5e7d38fe5b8115fe4860fe3e8a77d298cf67391b (diff)
Fix for fdo43460 Part XXXI getLength() to isEmpty()
Part XXXI Modules sd
Diffstat (limited to 'sd/source/ui/framework')
-rw-r--r--sd/source/ui/framework/configuration/Configuration.cxx6
-rw-r--r--sd/source/ui/framework/configuration/GenericConfigurationChangeRequest.cxx2
-rw-r--r--sd/source/ui/framework/configuration/ResourceFactoryManager.cxx4
-rw-r--r--sd/source/ui/framework/configuration/ResourceId.cxx2
-rw-r--r--sd/source/ui/framework/factories/FullScreenPane.cxx2
-rw-r--r--sd/source/ui/framework/factories/TaskPanelFactory.cxx2
-rw-r--r--sd/source/ui/framework/tools/FrameworkHelper.cxx2
7 files changed, 10 insertions, 10 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();
}
diff --git a/sd/source/ui/framework/factories/FullScreenPane.cxx b/sd/source/ui/framework/factories/FullScreenPane.cxx
index a3d9ab75be1e..d353c75be128 100644
--- a/sd/source/ui/framework/factories/FullScreenPane.cxx
+++ b/sd/source/ui/framework/factories/FullScreenPane.cxx
@@ -275,7 +275,7 @@ void FullScreenPane::ExtractArguments (
while (nIndex >= 0)
{
const OUString aToken = aURL.Arguments.getToken(0, '&', nIndex);
- if (aToken.getLength() > 0)
+ if (!aToken.isEmpty())
{
// Split at the first '='.
const sal_Int32 nAssign = aToken.indexOf('=');
diff --git a/sd/source/ui/framework/factories/TaskPanelFactory.cxx b/sd/source/ui/framework/factories/TaskPanelFactory.cxx
index dd4075650d7f..1c3c52e4e710 100644
--- a/sd/source/ui/framework/factories/TaskPanelFactory.cxx
+++ b/sd/source/ui/framework/factories/TaskPanelFactory.cxx
@@ -191,7 +191,7 @@ namespace
Reference< XResourceId > xResourceId( i_rResourceId );
::rtl::OUString sResourceURL = xResourceId->getResourceURL();
- while ( sResourceURL.getLength() > 0 )
+ while ( !sResourceURL.isEmpty() )
{
o_rResourceURLs.push_back( sResourceURL );
xResourceId = xResourceId->getAnchor();
diff --git a/sd/source/ui/framework/tools/FrameworkHelper.cxx b/sd/source/ui/framework/tools/FrameworkHelper.cxx
index d457433d99eb..92dc51acf824 100644
--- a/sd/source/ui/framework/tools/FrameworkHelper.cxx
+++ b/sd/source/ui/framework/tools/FrameworkHelper.cxx
@@ -905,7 +905,7 @@ OUString FrameworkHelper::ResourceIdToString (const Reference<XResourceId>& rxRe
if (rxResourceId->hasAnchor())
{
Sequence<OUString> aAnchorURLs (rxResourceId->getAnchorURLs());
- for (sal_Int32 nIndex=0; nIndex<aAnchorURLs.getLength(); ++nIndex)
+ for (sal_Int32 nIndex=0; nIndex < aAnchorURLs.getLength(); ++nIndex)
{
sString += OUString(RTL_CONSTASCII_USTRINGPARAM(" | "));
sString += aAnchorURLs[nIndex];