diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2012-03-24 20:09:59 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2012-03-24 20:09:59 +0000 |
commit | c7f46c50de98b6440943acbb18a06fed1bf01568 (patch) | |
tree | e1a8f5e06bb901721836053e0b659c961e1f48ba /src/core/document.c | |
parent | 82101457c8eb128a0514d38e950bdd1ca32e3d9a (diff) | |
download | libdom-c7f46c50de98b6440943acbb18a06fed1bf01568.tar.gz libdom-c7f46c50de98b6440943acbb18a06fed1bf01568.tar.bz2 |
Store 'class' string as dom_string instead of lwc_string.
svn path=/trunk/libdom/; revision=13616
Diffstat (limited to 'src/core/document.c')
-rw-r--r-- | src/core/document.c | 10 |
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); |