summaryrefslogtreecommitdiff
path: root/sc/source/filter/oox/worksheethelper.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-03-02 11:28:17 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-03-02 11:28:37 +0200
commit4730b23b1da929b802d527611e974ff1b1e6d6c5 (patch)
tree0809450a51e0aae057f19a1acd84dad5ec77a9b5 /sc/source/filter/oox/worksheethelper.cxx
parent42460fd4eb4757dcdf3b3e533aafabda77751321 (diff)
use std::vector::insert when inserting multiple of the same thing
instead of looping Change-Id: I7b8c1663e303449302e0b96dc5b483367c2a52ba
Diffstat (limited to 'sc/source/filter/oox/worksheethelper.cxx')
-rw-r--r--sc/source/filter/oox/worksheethelper.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/filter/oox/worksheethelper.cxx b/sc/source/filter/oox/worksheethelper.cxx
index 14a021af27dd..0f01e0d777b2 100644
--- a/sc/source/filter/oox/worksheethelper.cxx
+++ b/sc/source/filter/oox/worksheethelper.cxx
@@ -1248,8 +1248,7 @@ void WorksheetGlobals::convertOutlines( OutlineLevelVec& orLevels,
if( nSize < nLevel )
{
// Outline level increased. Push the begin column position.
- for( sal_Int32 nIndex = nSize; nIndex < nLevel; ++nIndex )
- orLevels.push_back( nColRow );
+ orLevels.insert(orLevels.end(), nLevel - nSize, nColRow);
}
else if( nLevel < nSize )
{