[PATCH] Fix cppcheck "possible null dereference" in ScMyCellInfo::CreateCell.

Catalin Iacob iacobcatalin at gmail.com
Wed Feb 22 12:16:15 PST 2012


It's safe to remove the check since CreateCell is only called by
CreateContentAction, CreateGeneratedActions and SetDependencies in the
same file and those in turn are only called by CreateChangeTrack only
if pDoc is not NULL.
---
 .../filter/xml/XMLChangeTrackingImportHelper.cxx   |   33 +++++++++-----------
 1 files changed, 15 insertions(+), 18 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-cppcheck-possible-null-dereference-in-ScMyCellIn.patch
Type: text/x-patch
Size: 2531 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20120222/51a9620d/attachment.bin>


More information about the LibreOffice mailing list