summaryrefslogtreecommitdiff
path: root/sw/source/core/access
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@alta.org.br>2012-01-17 17:47:34 -0200
committerOlivier Hallot <olivier.hallot@alta.org.br>2012-01-17 19:07:47 -0200
commit964617156260cd157d4f39be01a5d3dec1c29a27 (patch)
tree403c4a06a8739adf8aa0befb75543e41b898601f /sw/source/core/access
parent802d82b6e2acedd3581acbf23407d7f5f742c671 (diff)
Fix for fdo43460 Part XL getLength() to isEmpty()
Part XL Modules sw
Diffstat (limited to 'sw/source/core/access')
-rw-r--r--sw/source/core/access/accnotextframe.cxx8
-rw-r--r--sw/source/core/access/accpara.cxx2
-rw-r--r--sw/source/core/access/acctextframe.cxx8
3 files changed, 9 insertions, 9 deletions
diff --git a/sw/source/core/access/accnotextframe.cxx b/sw/source/core/access/accnotextframe.cxx
index 3c659152484c..f9a5ea6b5b9e 100644
--- a/sw/source/core/access/accnotextframe.cxx
+++ b/sw/source/core/access/accnotextframe.cxx
@@ -76,7 +76,7 @@ SwAccessibleNoTextFrame::SwAccessibleNoTextFrame(
msTitle = pNd->GetTitle();
msDesc = pNd->GetDescription();
- if ( msDesc.getLength() == 0 &&
+ if ( msDesc.isEmpty() &&
msTitle != GetName() )
{
msDesc = msTitle;
@@ -95,7 +95,7 @@ void SwAccessibleNoTextFrame::Modify( const SfxPoolItem* pOld, const SfxPoolItem
// suppress handling of RES_NAME_CHANGED in case that attribute Title is
// used as the accessible name.
if ( nWhich != RES_NAME_CHANGED ||
- msTitle.getLength() == 0 )
+ msTitle.isEmpty() )
{
SwAccessibleFrameBase::Modify( pOld, pNew );
}
@@ -136,7 +136,7 @@ void SwAccessibleNoTextFrame::Modify( const SfxPoolItem* pOld, const SfxPoolItem
const String& rDesc = pNd->GetDescription();
msDesc = rDesc;
- if ( msDesc.getLength() == 0 &&
+ if ( msDesc.isEmpty() &&
msTitle != GetName() )
{
msDesc = msTitle;
@@ -174,7 +174,7 @@ OUString SAL_CALL SwAccessibleNoTextFrame::getAccessibleName (void)
CHECK_FOR_DEFUNC( XAccessibleContext )
- if ( msTitle.getLength() != 0 )
+ if ( !msTitle.isEmpty() )
{
return msTitle;
}
diff --git a/sw/source/core/access/accpara.cxx b/sw/source/core/access/accpara.cxx
index 30c3165e09c9..59249ad57a92 100644
--- a/sw/source/core/access/accpara.cxx
+++ b/sw/source/core/access/accpara.cxx
@@ -817,7 +817,7 @@ sal_Bool SwAccessibleParagraph::GetTextBoundary(
CHECK_FOR_DEFUNC( XAccessibleContext );
osl::MutexGuard aGuard2( aMutex );
- if( !sDesc.getLength() )
+ if( sDesc.isEmpty() )
sDesc = GetDescription();
return sDesc;
diff --git a/sw/source/core/access/acctextframe.cxx b/sw/source/core/access/acctextframe.cxx
index 72861edc1af5..0f8175ac1c12 100644
--- a/sw/source/core/access/acctextframe.cxx
+++ b/sw/source/core/access/acctextframe.cxx
@@ -69,7 +69,7 @@ SwAccessibleTextFrame::SwAccessibleTextFrame(
msTitle = pFlyFrmFmt->GetObjTitle();
msDesc = pFlyFrmFmt->GetObjDescription();
- if ( msDesc.getLength() == 0 &&
+ if ( msDesc.isEmpty() &&
msTitle != GetName() )
{
msDesc = msTitle;
@@ -87,7 +87,7 @@ void SwAccessibleTextFrame::Modify( const SfxPoolItem* pOld, const SfxPoolItem *
// #i73249# - suppress handling of RES_NAME_CHANGED
// in case that attribute Title is used as the accessible name.
if ( nWhich != RES_NAME_CHANGED ||
- msTitle.getLength() == 0 )
+ msTitle.isEmpty() )
{
SwAccessibleFrameBase::Modify( pOld, pNew );
}
@@ -131,7 +131,7 @@ void SwAccessibleTextFrame::Modify( const SfxPoolItem* pOld, const SfxPoolItem *
dynamic_cast<const SwFlyFrmFmt*>( pFlyFrm->GetFmt() );
const String& rDesc = pFlyFrmFmt->GetObjDescription();
msDesc = rDesc;
- if ( msDesc.getLength() == 0 &&
+ if ( msDesc.isEmpty() &&
msTitle != GetName() )
{
msDesc = msTitle;
@@ -159,7 +159,7 @@ OUString SAL_CALL SwAccessibleTextFrame::getAccessibleName (void)
CHECK_FOR_DEFUNC( XAccessibleContext )
- if ( msTitle.getLength() != 0 )
+ if ( !msTitle.isEmpty() )
{
return msTitle;
}