diff options
-rw-r--r-- | sc/source/core/data/dpcache.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/data/dpcache.cxx b/sc/source/core/data/dpcache.cxx index fce310bd1ee6..5420185887e9 100644 --- a/sc/source/core/data/dpcache.cxx +++ b/sc/source/core/data/dpcache.cxx @@ -374,8 +374,8 @@ std::vector<OUString> normalizeLabels(const std::vector<InitColumnData>& rColDat std::vector<OUString> normalizeLabels(const ScDPCache::DBConnector& rDB, const sal_Int32 nLabelCount) { - std::vector<OUString> aLabels(nLabelCount+1); - aLabels.push_back(ScResId(STR_PIVOT_DATA)); + std::vector<OUString> aLabels(1u, ScResId(STR_PIVOT_DATA)); + aLabels.reserve(nLabelCount + 1); LabelSet aExistingNames; |