summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-08-21 20:55:00 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-08-21 20:55:00 +0100
commite7e1c1fddfdeb7d1d22174071aa9e8a1e2df2408 (patch)
treef6b4acfe2e20dfdb4238be5c4f3b0c44aca98d89 /sc
parente68c04130e0db3e53339503b1382d7f270048c5b (diff)
coverity#1371342 silence Illegal address computation
Change-Id: If4106031a5fcdd912d6b414c2289042567f6cc23
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/oox/stylesbuffer.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/oox/stylesbuffer.cxx b/sc/source/filter/oox/stylesbuffer.cxx
index f6c765f4fac7..81ebec97223c 100644
--- a/sc/source/filter/oox/stylesbuffer.cxx
+++ b/sc/source/filter/oox/stylesbuffer.cxx
@@ -369,7 +369,7 @@ ColorPalette::ColorPalette( const WorkbookHelper& rHelper )
, mnAppendIndex(0)
{
// default colors
- maColors.insert( maColors.begin(), spnDefColors8, ::std::end(spnDefColors8) );
+ maColors.insert( maColors.begin(), spnDefColors8, spnDefColors8 + SAL_N_ELEMENTS(spnDefColors8) );
mnAppendIndex = OOX_COLOR_USEROFFSET;
}