diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-08-21 20:54:08 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-08-21 20:54:08 +0100 |
commit | e68c04130e0db3e53339503b1382d7f270048c5b (patch) | |
tree | 4255918250d0d7437ac4e2a1eaed5d5441fdd543 /sc | |
parent | coverity#1371336 what is triggering this false positive (diff) | |
download | core-e68c04130e0db3e53339503b1382d7f270048c5b.tar.gz core-e68c04130e0db3e53339503b1382d7f270048c5b.zip |
coverity#1371341 silence Illegal address computation
Change-Id: I1dc6e21e7aa409d0f9c7b1621d45201ae939b728
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/oox/pagesettings.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/filter/oox/pagesettings.cxx b/sc/source/filter/oox/pagesettings.cxx index 0d5829e5807c..cfa29c142c75 100644 --- a/sc/source/filter/oox/pagesettings.cxx +++ b/sc/source/filter/oox/pagesettings.cxx @@ -475,8 +475,8 @@ HeaderFooterParser::HeaderFooterParser( const WorkbookHelper& rHelper ) : maSheetNameService( "com.sun.star.text.TextField.SheetName" ), maFileNameService( "com.sun.star.text.TextField.FileName" ), maDateTimeService( "com.sun.star.text.TextField.DateTime" ), - maBoldNames( std::begin(sppcBoldNames), std::end(sppcBoldNames) ), - maItalicNames( std::begin(sppcItalicNames), std::end(sppcItalicNames) ), + maBoldNames( sppcBoldNames, sppcBoldNames + SAL_N_ELEMENTS(sppcBoldNames) ), + maItalicNames( sppcItalicNames, sppcItalicNames + SAL_N_ELEMENTS(sppcItalicNames) ), maPortions( static_cast< size_t >( HF_COUNT ) ), meCurrPortion( HF_CENTER ) { |