summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
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);