tdf#158237 Use C++20 contains() instead of find() and end()
Change-Id: I59aee557e3a508a067cecad569ae4882c83c809b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179484 Tested-by: Jenkins Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
This commit is contained in:
committed by
Ilmari Lauhakangas
parent
c90c1d4435
commit
7994ecabf6
@@ -117,12 +117,12 @@ public:
|
||||
/** returns true if a substream with name exists */
|
||||
bool existsSubStream(const char* name) override
|
||||
{
|
||||
return name && m_nameToPathMap.find(name) != m_nameToPathMap.end();
|
||||
return name && m_nameToPathMap.contains(name);
|
||||
}
|
||||
/** return a new stream for an OLE zone */
|
||||
librevenge::RVNGInputStream* getSubStreamByName(const char* name) override
|
||||
{
|
||||
if (m_nameToPathMap.find(name) == m_nameToPathMap.end() || !m_xContent.is())
|
||||
if (!m_nameToPathMap.contains(name) || !m_xContent.is())
|
||||
return nullptr;
|
||||
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user