summaryrefslogtreecommitdiffstats
path: root/filter/source/config/cache/basecontainer.cxx
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@alta.org.br>2011-12-23 18:23:14 -0200
committerIvan Timofeev <timofeev.i.s@gmail.com>2011-12-26 14:05:06 +0400
commite7bddf732798508e347221590110486e97bb45e6 (patch)
tree5b37f87e2683d758ae9429215fa9cdec26a40b4a /filter/source/config/cache/basecontainer.cxx
parentfdo#32936: Remove Tahoma from the Hebrew font list (except the UI list) (diff)
downloadcore-e7bddf732798508e347221590110486e97bb45e6.tar.gz
core-e7bddf732798508e347221590110486e97bb45e6.zip
Fix for fdo43460 Part XVII getLength() to isEmpty()
Part XVII Module fileaccess and filter
Diffstat (limited to 'filter/source/config/cache/basecontainer.cxx')
-rw-r--r--filter/source/config/cache/basecontainer.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/filter/source/config/cache/basecontainer.cxx b/filter/source/config/cache/basecontainer.cxx
index ea47575cc80c..7fa2faac3dcf 100644
--- a/filter/source/config/cache/basecontainer.cxx
+++ b/filter/source/config/cache/basecontainer.cxx
@@ -219,7 +219,7 @@ void SAL_CALL BaseContainer::insertByName(const ::rtl::OUString& sItem ,
css::lang::WrappedTargetException ,
css::uno::RuntimeException )
{
- if (!sItem.getLength())
+ if (sItem.isEmpty())
throw css::lang::IllegalArgumentException(
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "empty value not allowed as item name." )),
static_cast< css::container::XNameContainer* >(this),
@@ -283,7 +283,7 @@ void SAL_CALL BaseContainer::replaceByName(const ::rtl::OUString& sItem ,
css::lang::WrappedTargetException ,
css::uno::RuntimeException )
{
- if (!sItem.getLength())
+ if (sItem.isEmpty())
throw css::lang::IllegalArgumentException(
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "empty value not allowed as item name." )),
static_cast< css::container::XNameContainer* >(this),
@@ -323,7 +323,7 @@ css::uno::Any SAL_CALL BaseContainer::getByName(const ::rtl::OUString& sItem)
css::lang::WrappedTargetException ,
css::uno::RuntimeException )
{
- if (!sItem.getLength())
+ if (sItem.isEmpty())
throw css::container::NoSuchElementException(
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "An empty item cant be part of this cache!" )),
css::uno::Reference< css::uno::XInterface >(static_cast< css::container::XNameAccess* >(this), css::uno::UNO_QUERY));