From 41590e7d1f8ee67c7d5c29c89a9b246c8c8f0f05 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 1 May 2024 20:28:16 +0100 Subject: WaE: C6011 Dereferencing NULL pointer warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I8edb1fefe1b2b8a3db3ee8f3a0eed59c7f08a36e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166863 Reviewed-by: Caolán McNamara Tested-by: Jenkins --- svx/source/fmcomp/fmgridcl.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'svx/source/fmcomp/fmgridcl.cxx') diff --git a/svx/source/fmcomp/fmgridcl.cxx b/svx/source/fmcomp/fmgridcl.cxx index 2fe0a5430e03..e77ad64aa714 100644 --- a/svx/source/fmcomp/fmgridcl.cxx +++ b/svx/source/fmcomp/fmgridcl.cxx @@ -1760,7 +1760,7 @@ void FmGridControl::HideColumn(sal_uInt16 nId) bool FmGridControl::isColumnSelected(DbGridColumn const * _pColumn) const { - OSL_ENSURE(_pColumn,"Column can not be null!"); + assert(_pColumn && "Column can not be null!"); bool bSelected = false; // if the column which is shown here is selected ... Reference< css::view::XSelectionSupplier > xSelSupplier(GetPeer()->getColumns(), UNO_QUERY); -- cgit