From 95bc3adf3a725688369215468284b15c84322dff Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Thu, 14 Nov 2024 11:45:43 +0100 Subject: tdf#163486: PVS: Expression is always true Since commit 9cddf9da7fb256418e1bc3b4719abb55e3b0604c Author: Vladimir Glazounov Date: Tue May 22 15:33:44 2007 +0000 INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED V560 A part of conditional expression is always false: (!(pTableFormat && pUnoCursor)). V560 A part of conditional expression is always true: pTableFormat. V560 A part of conditional expression is always true: pUnoCursor. Change-Id: Id690161e2a64a82f94530142879bf291bd8df743 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176583 Tested-by: Jenkins Reviewed-by: Xisco Fauli --- sw/source/core/unocore/unochart.cxx | 1 - 1 file changed, 1 deletion(-) diff --git a/sw/source/core/unocore/unochart.cxx b/sw/source/core/unocore/unochart.cxx index 5ea87aef1135..d5f7afc02a21 100644 --- a/sw/source/core/unocore/unochart.cxx +++ b/sw/source/core/unocore/unochart.cxx @@ -1303,7 +1303,6 @@ uno::Reference< chart2::data::XDataSequence > SwChartDataProvider::Impl_createDa if (aDesc.nTop != aDesc.nBottom && aDesc.nLeft != aDesc.nRight) throw lang::IllegalArgumentException(); - OSL_ENSURE( pTableFormat && pUnoCursor, "table format or cursor missing" ); uno::Reference< chart2::data::XDataSequence > xDataSeq; if (!bTestOnly) xDataSeq = new SwChartDataSequence( *this, *pTableFormat, pUnoCursor ); -- cgit