From dc1efd8158ca55f5edfe9a5b1a655190ad76ad65 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Thu, 17 Feb 2022 21:06:45 +0100 Subject: [PATCH] [xml] casts --- src/document/xml/renderer.c | 2 +- src/document/xml/renderer2.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/document/xml/renderer.c b/src/document/xml/renderer.c index 731507a9e..15b272caf 100644 --- a/src/document/xml/renderer.c +++ b/src/document/xml/renderer.c @@ -53,7 +53,7 @@ render_source_document_cxx(struct cache_entry *cached, struct document *document document->dom = document_parse(document); } if (document->dom) { - xmlpp::Document *docu = document->dom; + xmlpp::Document *docu = (xmlpp::Document *)document->dom; xmlpp::ustring text = docu->write_to_string_formatted(get_cp_mime_name(document->cp)); struct string tt; if (init_string(&tt)) { diff --git a/src/document/xml/renderer2.c b/src/document/xml/renderer2.c index a0c58c9a4..5c3d6b123 100644 --- a/src/document/xml/renderer2.c +++ b/src/document/xml/renderer2.c @@ -302,7 +302,7 @@ render_xhtml_document(struct cache_entry *cached, struct document *document, str if (cached->head) add_to_string(&head, cached->head); } - xmlpp::Document *doc = document->dom; + xmlpp::Document *doc = (xmlpp::Document *)document->dom; if (!buffer) { xmlpp::ustring text = doc->write_to_string_formatted();