diff --git a/shell/source/win32/ooofilereader/metainforeader.cxx b/shell/source/win32/ooofilereader/metainforeader.cxx index 9eab4d5e01d2..e4295311df72 100644 --- a/shell/source/win32/ooofilereader/metainforeader.cxx +++ b/shell/source/win32/ooofilereader/metainforeader.cxx @@ -121,7 +121,7 @@ CMetaInfoReader::~CMetaInfoReader() */ bool CMetaInfoReader::hasTag(const std::wstring& TagName) const { - return ( m_AllMetaInfo.find(TagName) != m_AllMetaInfo.end()); + return ( m_AllMetaInfo.contains(TagName) ); } /** Get a specific tag content, compound tags will be returned as comma separated list. @@ -146,7 +146,7 @@ std::wstring CMetaInfoReader::getTagData( const std::wstring& TagName) */ bool CMetaInfoReader::hasTagAttribute(const std::wstring& TagName, const std::wstring& AttributeName) { - return ( m_AllMetaInfo[TagName].second.find( AttributeName) != m_AllMetaInfo[TagName].second.end() ); + return ( m_AllMetaInfo[TagName].second.contains( AttributeName) ); } /** Get a specific attribute content.