summaryrefslogtreecommitdiff
path: root/xmloff/source
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2025-04-09 09:58:33 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2025-04-09 13:53:28 +0200
commit285a94b8de111ac1caef8a8b7cbcd2774d9edfe2 (patch)
tree9a2381f47afef43235fef4536c9a743a0a14d0dc /xmloff/source
parentbd135e5f294ac58bda8007d1553202ae6f9b621f (diff)
fix warning C6011: Dereferencing NULL pointer 'pImpPrMap' (take 2)
after commit 8009183a7a4cd1f5b2b6e78e480ade3f10d0eff2 Author: Noel Grandin <noelgrandin@gmail.com> Date: Sat Apr 5 22:03:18 2025 +0200 tdf#151876 shave some time off chart load (2) Change-Id: I687d939813e50f78eec92e15ea8aa9606316ea1e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183870 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org> Tested-by: Jenkins
Diffstat (limited to 'xmloff/source')
-rw-r--r--xmloff/source/draw/ximpstyl.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/xmloff/source/draw/ximpstyl.cxx b/xmloff/source/draw/ximpstyl.cxx
index a213ed880be3..d44b5ed1d7f9 100644
--- a/xmloff/source/draw/ximpstyl.cxx
+++ b/xmloff/source/draw/ximpstyl.cxx
@@ -245,9 +245,8 @@ void XMLDrawingPageStyleContext::FillPropertySet(
{
SvXMLImportPropertyMapper* pImpPrMap =
GetStyles()->GetImportPropertyMapper( GetFamily() );
- SAL_WARN_IF( !pImpPrMap, "xmloff", "There is the import prop mapper" );
- if( pImpPrMap )
- pImpPrMap->FillPropertySet(GetProperties(), rPropSet, m_pContextIDs.get());
+ assert( pImpPrMap );
+ pImpPrMap->FillPropertySet(GetProperties(), rPropSet, m_pContextIDs.get());
Reference< beans::XPropertySetInfo > xInfo;
for (size_t i=0; m_pContextIDs[i].nContextID != -1; ++i)