From 0eac98aa742e8e76ebb1af91b32bd02e04b2e20a Mon Sep 17 00:00:00 2001 From: Olivier Hallot Date: Sat, 10 Dec 2011 22:03:11 -0200 Subject: Fix for fdo43460 Part V getLength to isEmpty Part V Module chart2 --- chart2/source/controller/main/ControllerCommandDispatch.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'chart2/source/controller/main/ControllerCommandDispatch.cxx') diff --git a/chart2/source/controller/main/ControllerCommandDispatch.cxx b/chart2/source/controller/main/ControllerCommandDispatch.cxx index 1a37a1ce75ab..c6dac76313cb 100644 --- a/chart2/source/controller/main/ControllerCommandDispatch.cxx +++ b/chart2/source/controller/main/ControllerCommandDispatch.cxx @@ -708,14 +708,14 @@ void ControllerCommandDispatch::fireStatusEvent( const Reference< frame::XStatusListener > & xSingleListener /* = 0 */ ) { bool bIsChartSelectorURL = rURL.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM(".uno:ChartElementSelector") ); - if( rURL.getLength() == 0 || bIsChartSelectorURL ) + if( rURL.isEmpty() || bIsChartSelectorURL ) { uno::Any aArg; aArg <<= m_xController; fireStatusEventForURL( C2U(".uno:ChartElementSelector"), aArg, true, xSingleListener ); } - if( rURL.getLength() == 0 ) + if( rURL.isEmpty() ) for( ::std::map< OUString, bool >::const_iterator aIt( m_aCommandAvailability.begin()); aIt != m_aCommandAvailability.end(); ++aIt ) fireStatusEventForURLImpl( aIt->first, xSingleListener ); @@ -724,7 +724,7 @@ void ControllerCommandDispatch::fireStatusEvent( // statusbar. Should be handled by base implementation // @todo: remove if Issue 68864 is fixed - if( rURL.getLength() == 0 || + if( rURL.isEmpty() || rURL.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM(".uno:StatusBarVisible"))) { bool bIsStatusBarVisible( lcl_isStatusBarVisible( m_xController )); -- cgit