summaryrefslogtreecommitdiff
path: root/extensions/source/propctrlr/standardcontrol.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/source/propctrlr/standardcontrol.cxx')
-rw-r--r--extensions/source/propctrlr/standardcontrol.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/source/propctrlr/standardcontrol.cxx b/extensions/source/propctrlr/standardcontrol.cxx
index 2b740acc204c..e87599c1ceb5 100644
--- a/extensions/source/propctrlr/standardcontrol.cxx
+++ b/extensions/source/propctrlr/standardcontrol.cxx
@@ -216,7 +216,7 @@ namespace pcr
::rtl::OUString sText( getTypedControlWindow()->GetText() );
if ( m_bIsPassword )
{
- if ( sText.getLength() )
+ if ( !sText.isEmpty() )
aPropValue <<= (sal_Int16)sText.getStr()[0];
}
else
@@ -829,7 +829,7 @@ namespace pcr
::rtl::OUString sControlValue( getTypedControlWindow()->GetSelectEntry() );
Any aPropValue;
- if ( sControlValue.getLength() )
+ if ( !sControlValue.isEmpty() )
aPropValue <<= sControlValue;
return aPropValue;
}