summaryrefslogtreecommitdiff
path: root/extensions/source/abpilot
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@alta.org.br>2011-12-22 15:35:41 -0200
committerCédric Bosdonnat <cedric.bosdonnat@free.fr>2011-12-23 09:36:43 +0100
commit0fd40fe17bf67f81db44ef187ce67193ba1696cb (patch)
treee3d8ebfa3abcfc533f2e2419aa60385114dd67d1 /extensions/source/abpilot
parent9ea15fea21487b82636bae516a220bf15f805a84 (diff)
Fix for fdo43460 Part XVI getLength() to isEmpty()
Part XVI Module extensions
Diffstat (limited to 'extensions/source/abpilot')
-rw-r--r--extensions/source/abpilot/abpfinalpage.cxx2
-rw-r--r--extensions/source/abpilot/datasourcehandling.cxx6
2 files changed, 4 insertions, 4 deletions
diff --git a/extensions/source/abpilot/abpfinalpage.cxx b/extensions/source/abpilot/abpfinalpage.cxx
index ba66ef052e49..61ad7c188e10 100644
--- a/extensions/source/abpilot/abpfinalpage.cxx
+++ b/extensions/source/abpilot/abpfinalpage.cxx
@@ -82,7 +82,7 @@ namespace abp
{
::rtl::OUString sCurrentName(m_aName.GetText());
- if (0 == sCurrentName.getLength())
+ if (sCurrentName.isEmpty())
// the name must not be empty
return sal_False;
diff --git a/extensions/source/abpilot/datasourcehandling.cxx b/extensions/source/abpilot/datasourcehandling.cxx
index e099821812e8..2c45e5e8cc7d 100644
--- a/extensions/source/abpilot/datasourcehandling.cxx
+++ b/extensions/source/abpilot/datasourcehandling.cxx
@@ -153,8 +153,8 @@ namespace abp
const Reference< XMultiServiceFactory >& _rxORB, const ::rtl::OUString& _sName,
const ::rtl::OUString& _sURL ) SAL_THROW (( ::com::sun::star::uno::Exception ))
{
- OSL_ENSURE( _sName.getLength(), "lcl_registerDataSource: invalid name!" );
- OSL_ENSURE( _sURL.getLength(), "lcl_registerDataSource: invalid URL!" );
+ OSL_ENSURE( !_sName.isEmpty(), "lcl_registerDataSource: invalid name!" );
+ OSL_ENSURE( !_sURL.isEmpty(), "lcl_registerDataSource: invalid URL!" );
try
{
@@ -573,7 +573,7 @@ namespace abp
{
SQLException aException;
aError >>= aException;
- if ( !aException.Message.getLength() )
+ if ( aException.Message.isEmpty() )
{
// prepend some context info
SQLContext aDetailedError;