sfx2/source/control/dispatch.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit 88d2a98b23d155e8711ddb0600092ec85acb5792 Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Wed Jul 2 16:44:33 2025 +0200 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Wed Jul 2 19:15:10 2025 +0200 Drop nFirstShell from SfxDispatcher::FindServer_ Obsoleted by commit 27dadc070ec2c2a602d3c5b3494dd0bdc15c785f (loplugin:singlevalfields in sfx2, 2018-10-16). Change-Id: Ie5b2b99974c61f4d560d840a090150aeab0370b0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187285 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> diff --git a/sfx2/source/control/dispatch.cxx b/sfx2/source/control/dispatch.cxx index 782e61fe7e2f..30e5b7cb6fc4 100644 --- a/sfx2/source/control/dispatch.cxx +++ b/sfx2/source/control/dispatch.cxx @@ -1665,8 +1665,7 @@ bool SfxDispatcher::FindServer_(sal_uInt16 nSlot, SfxSlotServer& rServer) // search through all the shells of the chained dispatchers // from top to bottom - sal_uInt16 nFirstShell = 0; - for ( sal_uInt16 i = nFirstShell; i < nTotCount; ++i ) + for (sal_uInt16 i = 0; i < nTotCount; ++i) { SfxShell *pObjShell = GetShell(i); if (!pObjShell)