From e7bddf732798508e347221590110486e97bb45e6 Mon Sep 17 00:00:00 2001 From: Olivier Hallot Date: Fri, 23 Dec 2011 18:23:14 -0200 Subject: Fix for fdo43460 Part XVII getLength() to isEmpty() Part XVII Module fileaccess and filter --- filter/source/config/cache/basecontainer.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'filter/source/config/cache/basecontainer.cxx') 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)); -- cgit