summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2017-07-25 14:10:31 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2017-07-25 15:56:43 +0200
commitd3f48117216a02bc8ae86e821b54abae1a2c2c39 (patch)
tree8dd45573d76ae27ae28d2413bdb97ca3ee073a44 /writerfilter
parentead33392ddabe9655bc1edc050955429dff450f7 (diff)
DomainMapperTableManager::sprm: use std::find
Change-Id: Iaad2fe950372ecd5261d83554015dc771b3abbf8 Reviewed-on: https://gerrit.libreoffice.org/40403 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/dmapper/DomainMapperTableManager.cxx11
1 files changed, 1 insertions, 10 deletions
diff --git a/writerfilter/source/dmapper/DomainMapperTableManager.cxx b/writerfilter/source/dmapper/DomainMapperTableManager.cxx
index fa86c2e1471f..82e7640471fe 100644
--- a/writerfilter/source/dmapper/DomainMapperTableManager.cxx
+++ b/writerfilter/source/dmapper/DomainMapperTableManager.cxx
@@ -176,18 +176,9 @@ bool DomainMapperTableManager::sprm(Sprm & rSprm)
the final sizing of the table, but then must use the contents of each cell to determine final column widths.
(See 17.18.87 of the ISO/IEC 29500-1:2011.)
*/
- bool bFixed = true;
IntVectorPtr pCellWidths = getCurrentCellWidths();
// Check whether all cells have fixed widths in the given row of table.
- for (std::vector<sal_Int32>::const_iterator aValIter = pCellWidths->begin(); aValIter != pCellWidths->end(); ++aValIter)
- {
- if (*aValIter == -1)
- {
- bFixed = false;
- break;
- }
- }
-
+ bool bFixed = std::find(pCellWidths->begin(), pCellWidths->end(), -1) == pCellWidths->end();
if (!bFixed)
{
// Set the width type of table with 'Auto' and set the width value to 0 (as per grid values)