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/ui/shells/drformsh.cxx | |
parent | 802d82b6e2acedd3581acbf23407d7f5f742c671 (diff) |
Fix for fdo43460 Part XL getLength() to isEmpty()
Part XL
Modules
sw
Diffstat (limited to 'sw/source/ui/shells/drformsh.cxx')
-rw-r--r-- | sw/source/ui/shells/drformsh.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/ui/shells/drformsh.cxx b/sw/source/ui/shells/drformsh.cxx index 3fefd1a1d44a..97cb606d5497 100644 --- a/sw/source/ui/shells/drformsh.cxx +++ b/sw/source/ui/shells/drformsh.cxx @@ -130,7 +130,7 @@ void SwDrawFormShell::Execute(SfxRequest &rReq) if( xPropInfoSet->hasPropertyByName( sTargetURL )) { beans::Property aProp = xPropInfoSet->getPropertyByName( sTargetURL ); - if( aProp.Name.getLength() ) + if( !aProp.Name.isEmpty() ) { uno::Any aTmp; // Ja! @@ -214,7 +214,7 @@ void SwDrawFormShell::GetState(SfxItemSet& rSet) { aTmp = xPropSet->getPropertyValue( C2U("Label") ); OUString sTmp; - if( (aTmp >>= sTmp) && sTmp.getLength()) + if( (aTmp >>= sTmp) && !sTmp.isEmpty()) { aHLinkItem.SetName(sTmp); } @@ -225,7 +225,7 @@ void SwDrawFormShell::GetState(SfxItemSet& rSet) { aTmp = xPropSet->getPropertyValue( C2U("TargetURL") ); OUString sTmp; - if( (aTmp >>= sTmp) && sTmp.getLength()) + if( (aTmp >>= sTmp) && !sTmp.isEmpty()) { aHLinkItem.SetURL(sTmp); } @@ -236,7 +236,7 @@ void SwDrawFormShell::GetState(SfxItemSet& rSet) { aTmp = xPropSet->getPropertyValue( C2U("TargetFrame") ); OUString sTmp; - if( (aTmp >>= sTmp) && sTmp.getLength()) + if( (aTmp >>= sTmp) && !sTmp.isEmpty()) { aHLinkItem.SetTargetFrame(sTmp); } |