[Libreoffice-commits] core.git: sc/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Tue Jun 11 12:13:37 UTC 2019


 sc/source/core/data/dpcache.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 3a6f6aa7f338c053781a9d19ce8b74d0b3791d03
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Jun 11 09:44:40 2019 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Jun 11 14:12:19 2019 +0200

    Resolves: tdf#125808 empty labels in pivot table from registered data source
    
    since...
    
    commit 238cadd315901cbacfd9304bb1205e9f53f13eae
    Date:   Wed Apr 10 04:30:25 2019 +0530
    
        dpcache : use case-insensitive normalization of...
    
    Change-Id: I19057bde268ec07561da323bc694536dcad03a95
    Reviewed-on: https://gerrit.libreoffice.org/73806
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sc/source/core/data/dpcache.cxx b/sc/source/core/data/dpcache.cxx
index 6222ab6ec6b4..3f096f380ad2 100644
--- a/sc/source/core/data/dpcache.cxx
+++ b/sc/source/core/data/dpcache.cxx
@@ -367,8 +367,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;
 


More information about the Libreoffice-commits mailing list