sw/source/core/fields/reffld.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit b70c6d5e79dde0ef50f83a18afc69703d0dfc712 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Tue Dec 17 14:51:27 2024 +0100 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Tue Dec 17 17:11:03 2024 +0100 sw: silence warning C6011 C:/cygwin64/home/tdf/jenkins/workspace/gerrit_windows/sw/source/core/fields/reffld.cxx(1419): error C2220: the following warning is treated as an error C: make[1]: *** [C:/cygwin64/home/tdf/jenkins/workspace/gerrit_windows/solenv/gbuild/LinkTarget.mk:339: C:/cygwin64/home/tdf/jenkins/workspace/gerrit_windows/workdir/CxxObject/sw/source/core/fields/reffld.o] Error 2 Change-Id: I7ab3a8906738ed0cd64c890cabdf04234c80afd4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178666 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/sw/source/core/fields/reffld.cxx b/sw/source/core/fields/reffld.cxx index 063b45a1e6a6..c5afa790b330 100644 --- a/sw/source/core/fields/reffld.cxx +++ b/sw/source/core/fields/reffld.cxx @@ -1296,7 +1296,7 @@ SwTextNode* SwGetRefFieldType::FindAnchor(SwDoc* pDoc, const OUString& rRefMark, sal_Int32* pStart, sal_Int32* pEnd, SwRootFrame const* const pLayout, SwTextNode* pSelf, SwFrame* pContentFrame) { - OSL_ENSURE( pStart, "Why did no one check the StartPos?" ); + assert( pStart && "Why did no one check the StartPos?" ); IDocumentRedlineAccess & rIDRA(pDoc->getIDocumentRedlineAccess()); SwTextNode* pTextNd = nullptr;