From 16351a8ba50c04b9e4c7edbcf9491d2882a7eeda Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 3 Jul 2014 22:38:05 +0200 Subject: error: reference cannot be bound to dereferenced null pointer Change-Id: Id0dbd21225534630b57514a9ddd7cf11a395f272 --- sw/source/uibase/config/modcfg.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sw/source/uibase/config/modcfg.cxx b/sw/source/uibase/config/modcfg.cxx index 3795cbd0b32e..ec476a04bf26 100644 --- a/sw/source/uibase/config/modcfg.cxx +++ b/sw/source/uibase/config/modcfg.cxx @@ -95,7 +95,7 @@ bool SwModuleOptions::SetCapOption(bool bHTML, const InsCaptionOpt* pOpt) } else if (pOpt) { - if(pOpt->GetObjType() == OLE_CAP && &pOpt->GetOleId()) + if(pOpt->GetObjType() == OLE_CAP) { bool bFound = false; for( sal_uInt16 nId = 0; nId <= GLOB_NAME_CHART; nId++) -- cgit v1.2.3