Adapt to the new API for the Error class

This commit is contained in:
Pierre Pronchery 2015-11-23 00:10:02 +01:00
parent 2ec555d605
commit 8f0ba38e9f

View File

@ -393,7 +393,7 @@ int xmleditor_open(XMLEditor * xmleditor, char const * filename)
if(xmleditor->xml != NULL) if(xmleditor->xml != NULL)
xml_delete(xmleditor->xml); xml_delete(xmleditor->xml);
if((xmleditor->xml = xml_new(NULL, filename)) == NULL) if((xmleditor->xml = xml_new(NULL, filename)) == NULL)
return -xmleditor_error(xmleditor, error_get(), 1); return -xmleditor_error(xmleditor, error_get(NULL), 1);
if((doc = xml_get_document(xmleditor->xml)) != NULL) if((doc = xml_get_document(xmleditor->xml)) != NULL)
_open_document_node(xmleditor, doc->root, NULL); _open_document_node(xmleditor, doc->root, NULL);
_new_set_title(xmleditor); /* XXX make it a generic private function */ _new_set_title(xmleditor); /* XXX make it a generic private function */