summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2019-12-26 08:39:29 +0100
committerMike Kaganski <mike.kaganski@collabora.com>2019-12-26 09:22:57 +0100
commit1abfc8e2f677024ea058e96f3133e503ba89ea02 (patch)
tree7f268facaa262bd6452495c76e3adf209f2f0f7d /oox
parent1c6f6876ea1047a5f82b64b6fc9c835713e7d8bd (diff)
No need to pass string literals as char* here
The point is creating OUString from ASCII anyway Change-Id: I9b1e96c41bc13d924bd6194812a7230e2dd6ab78 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/85830 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'oox')
-rw-r--r--oox/source/drawingml/diagram/diagram.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/oox/source/drawingml/diagram/diagram.cxx b/oox/source/drawingml/diagram/diagram.cxx
index b2f3373ad113..d4e8f18f8bc0 100644
--- a/oox/source/drawingml/diagram/diagram.cxx
+++ b/oox/source/drawingml/diagram/diagram.cxx
@@ -159,12 +159,12 @@ static uno::Reference<xml::dom::XDocument> loadFragment(
static void importFragment( core::XmlFilterBase& rFilter,
const uno::Reference<xml::dom::XDocument>& rXDom,
- const char* pDocName,
+ const OUString& rDocName,
const DiagramPtr& pDiagram,
const rtl::Reference< core::FragmentHandler >& rxHandler )
{
DiagramDomMap& rMainDomMap = pDiagram->getDomMap();
- rMainDomMap[OUString::createFromAscii(pDocName)] = rXDom;
+ rMainDomMap[rDocName] = rXDom;
uno::Reference<xml::sax::XFastSAXSerializable> xSerializer(
rXDom, uno::UNO_QUERY_THROW);