summaryrefslogtreecommitdiff
path: root/extensions/source/bibliography/framectr.cxx
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/bibliography/framectr.cxx
parent9ea15fea21487b82636bae516a220bf15f805a84 (diff)
Fix for fdo43460 Part XVI getLength() to isEmpty()
Part XVI Module extensions
Diffstat (limited to 'extensions/source/bibliography/framectr.cxx')
-rw-r--r--extensions/source/bibliography/framectr.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/extensions/source/bibliography/framectr.cxx b/extensions/source/bibliography/framectr.cxx
index c645c9af8718..eede2cc92c8e 100644
--- a/extensions/source/bibliography/framectr.cxx
+++ b/extensions/source/bibliography/framectr.cxx
@@ -450,7 +450,7 @@ void BibFrameController_Impl::dispatch(const util::URL& _rURL, const uno::Sequen
else if(aCommand.EqualsAscii("Bib/sdbsource"))
{
rtl::OUString aURL = pDatMan->CreateDBChangeDialog(pParent);
- if(aURL.getLength())
+ if(!aURL.isEmpty())
{
try
{
@@ -563,7 +563,7 @@ void BibFrameController_Impl::dispatch(const util::URL& _rURL, const uno::Sequen
{
FeatureStateEvent aEvent;
aEvent.FeatureURL = pObj->aURL;
- aEvent.IsEnabled = 0 != pDatMan->getParser()->getFilter().getLength();
+ aEvent.IsEnabled = !pDatMan->getParser()->getFilter().isEmpty();
aEvent.Requery = sal_False;
aEvent.Source = (XDispatch *) this;
pObj->xListener->statusChanged( aEvent );
@@ -755,7 +755,7 @@ void BibFrameController_Impl::addStatusListener(
else if (aURL.Path == C2U("Bib/removeFilter") )
{
rtl::OUString aFilterStr=pDatMan->getFilter();
- aEvent.IsEnabled = (aFilterStr.getLength() > 0);
+ aEvent.IsEnabled = !aFilterStr.isEmpty();
}
else if(aURL.Path == C2U("Cut"))
{
@@ -800,7 +800,7 @@ void BibFrameController_Impl::addStatusListener(
uno::Any aData = xDataObj->getTransferData( aFlavor );
::rtl::OUString aText;
aData >>= aText;
- aEvent.IsEnabled = aText.getLength() > 0;
+ aEvent.IsEnabled = !aText.isEmpty();
}
catch( const uno::Exception& )
{
@@ -845,7 +845,7 @@ void BibFrameController_Impl::removeStatusListener(
BibStatusDispatch *pObj = aStatusListeners[n];
sal_Bool bFlag=pObj->xListener.is();
if (!bFlag || (pObj->xListener == aObject &&
- ( !aURL.Complete.getLength() || pObj->aURL.Path == aURL.Path )))
+ ( aURL.Complete.isEmpty() || pObj->aURL.Path == aURL.Path )))
{
aStatusListeners.DeleteAndDestroy( n );
break;