1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[xml] casts

This commit is contained in:
Witold Filipczyk 2022-02-17 21:06:45 +01:00
parent 647e00f950
commit dc1efd8158
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ render_source_document_cxx(struct cache_entry *cached, struct document *document
document->dom = document_parse(document); document->dom = document_parse(document);
} }
if (document->dom) { 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)); xmlpp::ustring text = docu->write_to_string_formatted(get_cp_mime_name(document->cp));
struct string tt; struct string tt;
if (init_string(&tt)) { if (init_string(&tt)) {

View File

@ -302,7 +302,7 @@ render_xhtml_document(struct cache_entry *cached, struct document *document, str
if (cached->head) add_to_string(&head, cached->head); if (cached->head) add_to_string(&head, cached->head);
} }
xmlpp::Document *doc = document->dom; xmlpp::Document *doc = (xmlpp::Document *)document->dom;
if (!buffer) { if (!buffer) {
xmlpp::ustring text = doc->write_to_string_formatted(); xmlpp::ustring text = doc->write_to_string_formatted();