summaryrefslogtreecommitdiff
path: root/sc/source/ui
diff options
context:
space:
mode:
authorDr. David Alan Gilbert <dave@treblig.org>2023-05-24 13:47:22 +0100
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-05-26 12:49:14 +0200
commitb480552d9c4ac9be1f53edc6cac21bc45cfe29ca (patch)
treedea8ae5a372974ad274701282ac27c874a66524c /sc/source/ui
parent2d6dff8d9837c66d5961ea74921306110b9d747b (diff)
replace find_if by none_of
A set of cases where find_if is used just to test if there are no matches; use none_of as per tdf#153109 Change-Id: I6c705ab7a8289914743199722a444ee40d11d746 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152200 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui')
-rw-r--r--sc/source/ui/app/scmod.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx
index 2f84555fd3ca..93b74d70e68e 100644
--- a/sc/source/ui/app/scmod.cxx
+++ b/sc/source/ui/app/scmod.cxx
@@ -2192,11 +2192,11 @@ void ScModule::RegisterRefController(sal_uInt16 nSlotId, std::shared_ptr<SfxDial
{
std::vector<std::pair<std::shared_ptr<SfxDialogController>, weld::Window*>> & rlRefWindow = m_mapRefController[nSlotId];
- if (std::find_if(rlRefWindow.begin(), rlRefWindow.end(),
+ if (std::none_of(rlRefWindow.begin(), rlRefWindow.end(),
[rWnd](const std::pair<std::shared_ptr<SfxDialogController>, weld::Window*>& rCandidate)
{
return rCandidate.first.get() == rWnd.get();
- }) == rlRefWindow.end())
+ }))
{
rlRefWindow.emplace_back(rWnd, pWndAncestor);
}