diff options
Diffstat (limited to 'sc/source/filter/orcus/xmlcontext.cxx')
-rw-r--r-- | sc/source/filter/orcus/xmlcontext.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sc/source/filter/orcus/xmlcontext.cxx b/sc/source/filter/orcus/xmlcontext.cxx index 1f3ee58220a0..f886dd555a66 100644 --- a/sc/source/filter/orcus/xmlcontext.cxx +++ b/sc/source/filter/orcus/xmlcontext.cxx @@ -89,9 +89,10 @@ void populateTree( rTreeCtrl.set_image(*xEntry, rParam.maImgElementRepeat, -1); } - orcus::xml_structure_tree::entity_names_type aNames = rWalker.get_attributes(); + orcus::xml_structure_tree::entity_names_type aNames; // Insert attributes. + rWalker.get_attributes(aNames); for (const orcus::xml_structure_tree::entity_name& rAttrName : aNames) { OUString sAttr(toString(rAttrName, rWalker)); @@ -105,7 +106,7 @@ void populateTree( rTreeCtrl.set_image(*xAttr, rParam.maImgAttribute, -1); } - aNames = rWalker.get_children(); + rWalker.get_children(aNames); // Non-leaf if it has child elements, leaf otherwise. rEntryData.mbLeafNode = aNames.empty(); @@ -265,7 +266,7 @@ void ScOrcusXMLContextImpl::importXML(const ScOrcusImportXMLParam& rParam) std::for_each(rLink.maFieldPaths.begin(), rLink.maFieldPaths.end(), [&filter](const OString& rFieldPath) { - filter.append_field_link(rFieldPath.getStr(), orcus::pstring()); + filter.append_field_link(rFieldPath.getStr()); } ); |