diff options
author | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-01-17 17:47:34 -0200 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-01-17 19:07:47 -0200 |
commit | 964617156260cd157d4f39be01a5d3dec1c29a27 (patch) | |
tree | 403c4a06a8739adf8aa0befb75543e41b898601f /sw/source/core/access/accnotextframe.cxx | |
parent | 802d82b6e2acedd3581acbf23407d7f5f742c671 (diff) |
Fix for fdo43460 Part XL getLength() to isEmpty()
Part XL
Modules
sw
Diffstat (limited to 'sw/source/core/access/accnotextframe.cxx')
-rw-r--r-- | sw/source/core/access/accnotextframe.cxx | 8 |
1 files changed, 4 insertions, 4 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; } |