summaryrefslogtreecommitdiff
path: root/extensions/source/propctrlr/propcontroller.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/propctrlr/propcontroller.cxx
parent9ea15fea21487b82636bae516a220bf15f805a84 (diff)
Fix for fdo43460 Part XVI getLength() to isEmpty()
Part XVI Module extensions
Diffstat (limited to 'extensions/source/propctrlr/propcontroller.cxx')
-rw-r--r--extensions/source/propctrlr/propcontroller.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/extensions/source/propctrlr/propcontroller.cxx b/extensions/source/propctrlr/propcontroller.cxx
index 63cb0e01053c..a2c27fab52f3 100644
--- a/extensions/source/propctrlr/propcontroller.cxx
+++ b/extensions/source/propctrlr/propcontroller.cxx
@@ -511,7 +511,7 @@ namespace pcr
void SAL_CALL OPropertyBrowserController::restoreViewData( const Any& Data ) throw(RuntimeException)
{
::rtl::OUString sPageSelection;
- if ( ( Data >>= sPageSelection ) && sPageSelection.getLength() )
+ if ( ( Data >>= sPageSelection ) && !sPageSelection.isEmpty() )
{
m_sPageSelection = sPageSelection;
selectPageFromViewData();
@@ -687,9 +687,9 @@ namespace pcr
}
}
- if ( m_sPageSelection.getLength() )
+ if ( !m_sPageSelection.isEmpty() )
m_sLastValidPageSelection = m_sPageSelection;
- else if ( sOldSelection.getLength() )
+ else if ( !sOldSelection.isEmpty() )
m_sLastValidPageSelection = sOldSelection;
}
@@ -1168,13 +1168,13 @@ namespace pcr
_rDescriptor.sName = _rProperty.Name;
_rDescriptor.aValue = _rDescriptor.xPropertyHandler->getPropertyValue( _rProperty.Name );
- if ( !_rDescriptor.DisplayName.getLength() )
+ if ( _rDescriptor.DisplayName.isEmpty() )
{
#ifdef DBG_UTIL
::rtl::OString sMessage( "OPropertyBrowserController::describePropertyLine: handler did not provide a display name for '" );
sMessage += ::rtl::OString( _rProperty.Name.getStr(), _rProperty.Name.getLength(), RTL_TEXTENCODING_ASCII_US );
sMessage += ::rtl::OString( "'!" );
- DBG_ASSERT( _rDescriptor.DisplayName.getLength(), sMessage.getStr() );
+ DBG_ASSERT( !_rDescriptor.DisplayName.isEmpty(), sMessage.getStr() );
#endif
_rDescriptor.DisplayName = _rProperty.Name;
}
@@ -1250,7 +1250,7 @@ namespace pcr
bool bIsActuatingProperty = impl_isActuatingProperty_nothrow( property->second.Name );
#if OSL_DEBUG_LEVEL > 0
- if ( !aDescriptor.Category.getLength() )
+ if ( aDescriptor.Category.isEmpty() )
{
::rtl::OString sMessage( "OPropertyBrowserController::UpdateUI: empty category provided for property '" );
sMessage += ::rtl::OString( property->second.Name.getStr(), property->second.Name.getLength(), osl_getThreadTextEncoding() );
@@ -1320,7 +1320,7 @@ namespace pcr
}
// activate the previously active page (if possible)
- if ( m_sLastValidPageSelection.getLength() )
+ if ( !m_sLastValidPageSelection.isEmpty() )
m_sPageSelection = m_sLastValidPageSelection;
selectPageFromViewData();
}