html_css_fetcher: Use corestring_lwc_x_ns_css

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
This commit is contained in:
Daniel Silverstone 2019-12-01 17:04:21 +00:00
parent 2e07d955b6
commit 33c81b6932
No known key found for this signature in database
GPG Key ID: C30DF439F2987D74
1 changed files with 2 additions and 8 deletions

View File

@ -31,6 +31,7 @@
#include "netsurf/inttypes.h"
#include "utils/config.h"
#include "utils/corestrings.h"
#include "utils/log.h"
#include "utils/ring.h"
#include "utils/nsurl.h"
@ -284,7 +285,6 @@ static void html_css_fetcher_poll(lwc_string *scheme)
/* exported interface documented in html_internal.h */
nserror html_css_fetcher_register(void)
{
lwc_string *scheme;
const struct fetcher_operation_table html_css_fetcher_ops = {
.initialise = html_css_fetcher_initialise,
.acceptable = html_css_fetcher_can_fetch,
@ -296,13 +296,7 @@ nserror html_css_fetcher_register(void)
.finalise = html_css_fetcher_finalise
};
if (lwc_intern_string("x-ns-css", SLEN("x-ns-css"),
&scheme) != lwc_error_ok) {
NSLOG(netsurf, INFO, "could not intern \"x-ns-css\".");
return NSERROR_INIT_FAILED;
}
return fetcher_add(scheme, &html_css_fetcher_ops);
return fetcher_add(corestring_lwc_x_ns_css, &html_css_fetcher_ops);
}
/* exported interface documented in html_internal.h */