summaryrefslogtreecommitdiff
path: root/comphelper/source/misc/namedvaluecollection.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'comphelper/source/misc/namedvaluecollection.cxx')
-rw-r--r--comphelper/source/misc/namedvaluecollection.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/comphelper/source/misc/namedvaluecollection.cxx b/comphelper/source/misc/namedvaluecollection.cxx
index 4e1471186d6e..84e705f8b287 100644
--- a/comphelper/source/misc/namedvaluecollection.cxx
+++ b/comphelper/source/misc/namedvaluecollection.cxx
@@ -118,13 +118,10 @@ namespace comphelper
bool NamedValueCollection::canExtractFrom( css::uno::Any const & i_value )
{
Type const & aValueType = i_value.getValueType();
- if ( aValueType.equals( ::cppu::UnoType< PropertyValue >::get() )
+ return aValueType.equals( ::cppu::UnoType< PropertyValue >::get() )
|| aValueType.equals( ::cppu::UnoType< NamedValue >::get() )
|| aValueType.equals( ::cppu::UnoType< Sequence< PropertyValue > >::get() )
- || aValueType.equals( ::cppu::UnoType< Sequence< NamedValue > >::get() )
- )
- return true;
- return false;
+ || aValueType.equals( ::cppu::UnoType< Sequence< NamedValue > >::get() );
}