From 93bb2101197c1ff64a5cc3ab9ffa64f66c0d9641 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Fri, 19 Dec 2014 09:04:31 +0100 Subject: Let MetafileXmlDump::dumpAndParse() take a const GDIMetaFile So the const_cast<> in CppunitTest_sw_uiwriter can go away. Change-Id: Id7d4234154cd6bed43cb5270b50208061038dcf7 --- sw/qa/extras/uiwriter/uiwriter.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw') diff --git a/sw/qa/extras/uiwriter/uiwriter.cxx b/sw/qa/extras/uiwriter/uiwriter.cxx index 8073a4317b6f..0813dec72c80 100644 --- a/sw/qa/extras/uiwriter/uiwriter.cxx +++ b/sw/qa/extras/uiwriter/uiwriter.cxx @@ -789,7 +789,7 @@ void SwUiWriterTest::testFdo87448() ReadGraphic(aStream, aGraphic); const GDIMetaFile& rMetaFile = aGraphic.GetGDIMetaFile(); MetafileXmlDump dumper; - xmlDocPtr pXmlDoc = dumper.dumpAndParse(const_cast(rMetaFile)); + xmlDocPtr pXmlDoc = dumper.dumpAndParse(rMetaFile); // The first polyline in the document has a number of points to draw arcs, // the last one jumps back to the start, so we call "end" the last but one. -- cgit v1.2.3