summaryrefslogtreecommitdiff
path: root/src/core/document.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/document.c')
-rw-r--r--src/core/document.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/document.c b/src/core/document.c
index c4e0283..fbdaa7a 100644
--- a/src/core/document.c
+++ b/src/core/document.c
@@ -132,10 +132,10 @@ dom_exception _dom_document_initialise(dom_document *doc,
doc->id_name = NULL;
- if (lwc_intern_string("class", SLEN("class"),
- &doc->class_string) != lwc_error_ok) {
- return DOM_NO_MEM_ERR;
- }
+ err = dom_string_create_interned((const uint8_t *) "class",
+ SLEN("class"), &doc->class_string);
+ if (err != DOM_NO_ERR)
+ return err;
/* We should not pass a NULL when all things hook up */
return _dom_document_event_internal_initialise(doc, &doc->dei, daf);
@@ -170,7 +170,7 @@ bool _dom_document_finalise(dom_document *doc)
if (doc->id_name != NULL)
dom_string_unref(doc->id_name);
- lwc_string_unref(doc->class_string);
+ dom_string_unref(doc->class_string);
_dom_document_event_internal_finalise(doc, &doc->dei);