summaryrefslogtreecommitdiff
path: root/sc/source/core/data/column3.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-10-16 14:53:14 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-10-16 17:14:11 +0200
commit469902211317ca7d94c500a761f3f7d53a43a35a (patch)
tree001bcc1f8ad86e452d474cdb1a0271def5280eca /sc/source/core/data/column3.cxx
parent0c1f93f3a2884d52b2ef329e87c7713bced17c33 (diff)
coverity#1440303 use emplace_back instead of push_back
Change-Id: I51457423fdd8d39b5c11d02b450d31fa59127952 Reviewed-on: https://gerrit.libreoffice.org/61840 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/core/data/column3.cxx')
-rw-r--r--sc/source/core/data/column3.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx
index 5cc446357e69..29ee998ebc35 100644
--- a/sc/source/core/data/column3.cxx
+++ b/sc/source/core/data/column3.cxx
@@ -2409,9 +2409,9 @@ public:
{
ScFormulaCell* p2 = const_cast<ScFormulaCell*>(p);
if (p2->IsValue())
- maEntries.push_back(Entry(nRow, p2->GetValue()));
+ maEntries.emplace_back(nRow, p2->GetValue());
else
- maEntries.push_back(Entry(nRow, p2->GetString()));
+ maEntries.emplace_back(nRow, p2->GetString());
}
void commitCells(ScColumn& rColumn)