summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2016-11-23 21:07:22 +0100
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-11-24 04:57:58 +0000
commitadeb91e69de33f09b154ccd7f5cdc0ac6c2cfb0c (patch)
tree0d50d695e3f7f754a6594526159ddb1a378a307f /sd
parentc3433b87985486bfe5352fda381bb9683d82b1a5 (diff)
don't use memset on std::vector
cppcheck warns: > memset( mLayoutInfo, 0, sizeof(mLayoutInfo) );<--- Using 'memset' > on struct that contains a 'std::vector'. [-] mLayoutInfo is an array of LayoutInfo, the struct LayoutInfo holds only a std::vector. remove the memset, as non-POD type LayoutInfo is default initialized. Change-Id: I3924660e39c488abbbc94404016718242c2c0c7f Reviewed-on: https://gerrit.libreoffice.org/31134 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/filter/eppt/pptx-epptooxml.cxx1
1 files changed, 0 insertions, 1 deletions
diff --git a/sd/source/filter/eppt/pptx-epptooxml.cxx b/sd/source/filter/eppt/pptx-epptooxml.cxx
index 8069c7adaaa0..e88be4388a91 100644
--- a/sd/source/filter/eppt/pptx-epptooxml.cxx
+++ b/sd/source/filter/eppt/pptx-epptooxml.cxx
@@ -319,7 +319,6 @@ PowerPointExport::PowerPointExport( const Reference< XComponentContext > & rxCtx
, mnAnimationNodeIdMax(1)
, mbCreateNotes(false)
{
- memset( mLayoutInfo, 0, sizeof(mLayoutInfo) );
}
PowerPointExport::~PowerPointExport()