diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-30 12:16:31 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-31 08:25:07 +0200 |
commit | c9253818ec8252169c20450b41878be459568d95 (patch) | |
tree | 1f271151725042f33c3c8aa3988343bcd7f89e12 /oox | |
parent | 242a796a71e29a1d8cdc4dd71d2465b898db32ab (diff) |
loplugin:oncevar
extend oncevar to any POD type
Change-Id: Ia98ee0a67f183e40fb0c38477760124b2c411dc0
Reviewed-on: https://gerrit.libreoffice.org/40564
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/drawingml/misccontexts.cxx | 2 | ||||
-rw-r--r-- | oox/source/vml/vmldrawing.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/oox/source/drawingml/misccontexts.cxx b/oox/source/drawingml/misccontexts.cxx index f5dc16d19b05..431db06e6e8e 100644 --- a/oox/source/drawingml/misccontexts.cxx +++ b/oox/source/drawingml/misccontexts.cxx @@ -359,7 +359,7 @@ ContextHandlerRef ArtisticEffectContext::onCreateContext( return nullptr; // effect attributes - sal_Int32 aAttribs[19] = { + sal_Int32 const aAttribs[19] = { XML_visible, XML_trans, XML_crackSpacing, XML_pressure, XML_numberOfShades, XML_grainSize, XML_intensity, XML_smoothness, XML_gridSize, XML_pencilSize, XML_size, XML_brushSize, XML_scaling, XML_detail, XML_bright, XML_contrast, diff --git a/oox/source/vml/vmldrawing.cxx b/oox/source/vml/vmldrawing.cxx index e7d172d63dc1..34d798b62d10 100644 --- a/oox/source/vml/vmldrawing.cxx +++ b/oox/source/vml/vmldrawing.cxx @@ -54,7 +54,7 @@ namespace { OUString lclGetShapeId( sal_Int32 nShapeId ) { // identifier consists of a literal NUL character, a lowercase 's', and the id - sal_Unicode aStr[2] = { '\0', 's' }; + sal_Unicode const aStr[2] = { '\0', 's' }; return OUString( aStr, 2 ) + OUString::number( nShapeId ); } |