Spreadsheet: Coverity issue 151662, 151655, 133440, 129433 are false positives, but code rewritten for readability.

This commit is contained in:
Eivind Kvedalen 2016-12-08 00:21:22 +01:00 committed by wmayer
parent 614a914926
commit 1ec381a07f

View File

@ -48,12 +48,16 @@ PropertiesDialog::PropertiesDialog(Sheet *_sheet, const std::vector<Range> &_ran
assert(ranges.size() > 0);
Range range = ranges[0];
sheet->getNewCell(*range)->getForeground(foregroundColor);
sheet->getCell(*range)->getBackground(backgroundColor);
sheet->getCell(*range)->getAlignment(alignment);
sheet->getCell(*range)->getStyle(style);
sheet->getCell(*range)->getDisplayUnit(displayUnit);
sheet->getCell(*range)->getAlias(alias);
Cell * cell = sheet->getNewCell(*range);
assert(cell != 0);
(void)cell->getForeground(foregroundColor);
(void)cell->getBackground(backgroundColor);
(void)cell->getAlignment(alignment);
(void)cell->getStyle(style);
(void)cell->getDisplayUnit(displayUnit);
(void)cell->getAlias(alias);
orgForegroundColor = foregroundColor;
orgBackgroundColor = backgroundColor;