diff options
Diffstat (limited to 'xmloff/source')
-rw-r--r-- | xmloff/source/text/txtlists.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/xmloff/source/text/txtlists.cxx b/xmloff/source/text/txtlists.cxx index 4cbd7874050b..3b81ce6d094d 100644 --- a/xmloff/source/text/txtlists.cxx +++ b/xmloff/source/text/txtlists.cxx @@ -138,8 +138,7 @@ void XMLTextListsHelper::KeepListAsProcessed( const OUString& sListId, mpMapListIdToListStyleDefaultListId = std::make_unique<tMapForLists>(); } - if ( mpMapListIdToListStyleDefaultListId->find( sListStyleName ) == - mpMapListIdToListStyleDefaultListId->end() ) + if ( !mpMapListIdToListStyleDefaultListId->contains( sListStyleName ) ) { (*mpMapListIdToListStyleDefaultListId)[ sListStyleName ] = ::std::pair<OUString, OUString>(sListId, sListStyleDefaultListId); @@ -153,7 +152,7 @@ bool XMLTextListsHelper::IsListProcessed( const OUString& sListId ) const return false; } - return mpProcessedLists->find( sListId ) != mpProcessedLists->end(); + return mpProcessedLists->contains( sListId ); } const OUString & XMLTextListsHelper::GetListStyleOfProcessedList( @@ -212,7 +211,7 @@ OUString XMLTextListsHelper::GenerateNewListId() const if ( mpProcessedLists ) { tools::Long nHitCount = 0; - while ( mpProcessedLists->find( sNewListId ) != mpProcessedLists->end() ) + while ( mpProcessedLists->contains( sNewListId ) ) { ++nHitCount; sNewListId = sTmpStr + OUString::number( nHitCount ); |