summaryrefslogtreecommitdiffstats
path: root/extensions/source/propctrlr/formcomponenthandler.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/source/propctrlr/formcomponenthandler.cxx')
-rw-r--r--extensions/source/propctrlr/formcomponenthandler.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/extensions/source/propctrlr/formcomponenthandler.cxx b/extensions/source/propctrlr/formcomponenthandler.cxx
index edfb90cfa5f3..ed7348bfaa5d 100644
--- a/extensions/source/propctrlr/formcomponenthandler.cxx
+++ b/extensions/source/propctrlr/formcomponenthandler.cxx
@@ -226,7 +226,7 @@ namespace pcr
{
xStringResourceResolver.set( _xComponent->getPropertyValue( "ResourceResolver" ),UNO_QUERY);
if( xStringResourceResolver.is() &&
- xStringResourceResolver->getLocales().getLength() > 0 )
+ xStringResourceResolver->getLocales().hasElements() )
{
xRet = xStringResourceResolver;
}
@@ -1806,7 +1806,7 @@ namespace pcr
Any aListSourceValue( impl_getPropertyValue_throw( PROPERTY_LISTSOURCE ) );
if ( aListSourceValue >>= aListSource )
{
- if ( aListSource.getLength() )
+ if ( aListSource.hasElements() )
sListSource = aListSource[0];
}
else
@@ -1888,7 +1888,7 @@ namespace pcr
{
Sequence< OUString > aEntries;
impl_getPropertyValue_throw( PROPERTY_STRINGITEMLIST ) >>= aEntries;
- bool isEnabled = aEntries.getLength() != 0;
+ bool isEnabled = aEntries.hasElements();
if ( ( m_nClassId == FormComponentType::LISTBOX ) && ( m_eComponentClass == eFormControl ) )
{
@@ -3103,7 +3103,7 @@ namespace pcr
if ( aValue >>= aValueList )
{
m_bPropertyValueIsList = true;
- if ( aValueList.getLength() )
+ if ( aValueList.hasElements() )
sValue = aValueList[0];
return sValue;
}