summaryrefslogtreecommitdiff
path: root/sc/source/ui/xmlsource
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-09-12 08:14:36 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-09-12 09:42:55 +0200
commitb6819a53c0b56a47d6ac7c6eb5aa7d82ca49136c (patch)
tree393e90116f9b141c5f1e189dbc48ca774f171967 /sc/source/ui/xmlsource
parentda705eff910f512623a689aaf28604270fb8f1c4 (diff)
clang-tidy modernize-use-emplace in sc
Change-Id: Ifc38e1fc188fe957a0c717aec19cdd6637e4c658 Reviewed-on: https://gerrit.libreoffice.org/42183 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/xmlsource')
-rw-r--r--sc/source/ui/xmlsource/xmlsourcedlg.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sc/source/ui/xmlsource/xmlsourcedlg.cxx b/sc/source/ui/xmlsource/xmlsourcedlg.cxx
index 9ae8dc0cf223..76dfebcbe5ab 100644
--- a/sc/source/ui/xmlsource/xmlsourcedlg.cxx
+++ b/sc/source/ui/xmlsource/xmlsourcedlg.cxx
@@ -565,9 +565,8 @@ void ScXMLSourceDlg::OkPressed()
OUString aPath = getXPath(*mpLbTree, rEntry, aParam.maNamespaces);
const ScOrcusXMLTreeParam::EntryData* pUserData = ScOrcusXMLTreeParam::getUserData(rEntry);
- aParam.maCellLinks.push_back(
- ScOrcusImportXMLParam::CellLink(
- pUserData->maLinkedPos, OUStringToOString(aPath, RTL_TEXTENCODING_UTF8)));
+ aParam.maCellLinks.emplace_back(
+ pUserData->maLinkedPos, OUStringToOString(aPath, RTL_TEXTENCODING_UTF8));
}
}