desktop/source/lib/init.cxx | 1 -
1 file changed, 1 deletion(-)
New commits:
commit cfdda21862cf661fa197326f1456b605636638f8
Author: Tor Lillqvist <[email protected]>
AuthorDate: Mon Aug 18 13:33:04 2025 +0300
Commit: Caolán McNamara <[email protected]>
CommitDate: Mon Aug 18 18:02:28 2025 +0200
Remove pointless assertion
After cc93fa1d10c86d7bad938dcdbb671b5a8bd78def the function handles
viewShell being null so no need to fail an assert if it is null.
Change-Id: Ie7d398f300e5eb695ae249291b9b8611dddc6423
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189865
Reviewed-by: Caolán McNamara <[email protected]>
Tested-by: Jenkins
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 981ac0c73525..8a0db69555a3 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -2406,7 +2406,6 @@ void CallbackFlushHandler::enqueueUpdatedTypes()
assert(m_viewId >= 0);
SfxViewShell* viewShell = SfxViewShell::GetFirst( false,
[this](const SfxViewShell& shell) { return
shell.GetViewShellId().get() == m_viewId; } );
- assert(viewShell != nullptr);
// First move data to local structures, so that callbacks don't possibly
modify it.
std::vector<bool> updatedTypes;