diff options
Diffstat (limited to 'comphelper/source/container')
-rw-r--r-- | comphelper/source/container/enumerablemap.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/comphelper/source/container/enumerablemap.cxx b/comphelper/source/container/enumerablemap.cxx index 3c5fe7951792..eb21b1795834 100644 --- a/comphelper/source/container/enumerablemap.cxx +++ b/comphelper/source/container/enumerablemap.cxx @@ -349,7 +349,7 @@ namespace comphelper // create the comparator for the KeyType, and throw if the type is not supported std::unique_ptr< IKeyPredicateLess > pComparator( getStandardLessPredicate( aKeyType, nullptr ) ); - if ( !pComparator.get() ) + if (!pComparator) throw IllegalTypeException("Unsupported key type.", *this ); // init members @@ -369,7 +369,7 @@ namespace comphelper void EnumerableMap::impl_initValues_throw( const Sequence< Pair< Any, Any > >& _initialValues ) { OSL_PRECOND( m_aData.m_pValues.get() && m_aData.m_pValues->empty(), "EnumerableMap::impl_initValues_throw: illegal call!" ); - if ( !m_aData.m_pValues.get() || !m_aData.m_pValues->empty() ) + if (!m_aData.m_pValues || !m_aData.m_pValues->empty()) throw RuntimeException(); const Pair< Any, Any >* mapping = _initialValues.getConstArray(); |