sw/source/core/unocore/unobkm.cxx | 1 -
1 file changed, 1 deletion(-)
New commits:
commit 7c9e2e62117efd95e11e8b2dfdbedd88452932b8
Author: Mike Kaganski <[email protected]>
AuthorDate: Wed Apr 23 10:12:38 2025 +0200
Commit: Mike Kaganski <[email protected]>
CommitDate: Wed Apr 23 11:46:35 2025 +0200
Drop needless warning
E.g., SwXServiceProvider::MakeInstance explicitly passes nullptr
to SwXBookmark::CreateXBookmark.
Change-Id: I8163479d399fe2f4243c7b4ecb7e0c04b594b95f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184460
Reviewed-by: Mike Kaganski <[email protected]>
Tested-by: Jenkins
diff --git a/sw/source/core/unocore/unobkm.cxx
b/sw/source/core/unocore/unobkm.cxx
index fe62073d62c0..346d0868062f 100644
--- a/sw/source/core/unocore/unobkm.cxx
+++ b/sw/source/core/unocore/unobkm.cxx
@@ -154,7 +154,6 @@ rtl::Reference<SwXBookmark> SwXBookmark::CreateXBookmark(
::sw::mark::MarkBase *const pBookmark)
{
// #i105557#: do not iterate over the registered clients: race condition
- OSL_ENSURE(pBookmark, "CreateXBookmark: no MarkBase?");
rtl::Reference<SwXBookmark> xBookmark;
if (pBookmark)
{