diff options
author | Johann <jlorber@linagora.com> | 2024-12-17 13:16:39 +0100 |
---|---|---|
committer | Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> | 2024-12-27 16:20:47 +0100 |
commit | bf7ac07c04cb06316b745eb9716787b16c1314dd (patch) | |
tree | b2d27cb3fe0375ffeedb95a45264325cf1803a94 /desktop | |
parent | d2d9af865880d5da94e86f40d18686433ff821df (diff) |
tdf#158237: Use C++20 contains() instead of find() and end()
Change-Id: I0528229042aa62d3d99e8dbaad68a86d41cf369a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178659
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Jenkins
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/lib/init.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index f858b9fdd22a..9f42a3524707 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -7693,7 +7693,7 @@ static void lo_setDocumentPassword(LibreOfficeKit* pThis, assert(pThis); assert(pURL); LibLibreOffice_Impl *const pLib = static_cast<LibLibreOffice_Impl*>(pThis); - assert(pLib->mInteractionMap.find(OString(pURL)) != pLib->mInteractionMap.end()); + assert(pLib->mInteractionMap.contains(OString(pURL))); pLib->mInteractionMap.find(OString(pURL))->second->SetPassword(pPassword); } |