desktop/source/lib/init.cxx | 1 -
1 file changed, 1 deletion(-)
New commits:
commit 4fc8eee46f0df4f3307c04b0ace2cc2ae0815ab1
Author: Tor Lillqvist <[email protected]>
AuthorDate: Mon Aug 18 13:33:04 2025 +0300
Commit: Michael Stahl <[email protected]>
CommitDate: Tue Dec 2 10:15:50 2025 +0100
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/+/194596
Tested-by: Jenkins CollaboraOffice <[email protected]>
Reviewed-by: Michael Stahl <[email protected]>
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 480f0733223b..ab956e1ffc89 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -2413,7 +2413,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;