summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
Diffstat (limited to 'content')
-rw-r--r--content/handlers/html/html.c2
-rw-r--r--content/handlers/html/textselection.c4
-rw-r--r--content/handlers/text/textplain.c6
3 files changed, 4 insertions, 8 deletions
diff --git a/content/handlers/html/html.c b/content/handlers/html/html.c
index 2c471ae40..5ae6ee502 100644
--- a/content/handlers/html/html.c
+++ b/content/handlers/html/html.c
@@ -493,7 +493,7 @@ html_create_html_data(html_content *c, const http_parameter *params)
return NSERROR_NOMEM;
}
- selection_prepare(&c->sel, (struct content *)c, true);
+ selection_prepare(&c->sel, (struct content *)c);
nerror = http_parameter_list_find_item(params, corestring_lwc_charset, &charset);
if (nerror == NSERROR_OK) {
diff --git a/content/handlers/html/textselection.c b/content/handlers/html/textselection.c
index 06e28e11f..becebb882 100644
--- a/content/handlers/html/textselection.c
+++ b/content/handlers/html/textselection.c
@@ -265,13 +265,11 @@ nserror
html_create_selection(struct content *c, struct selection **sel_out)
{
struct selection *sel;
- sel = selection_create(c, true);
+ sel = selection_create(c);
if (sel == NULL) {
return NSERROR_NOMEM;
}
- selection_init(sel);
-
*sel_out = sel;
return NSERROR_OK;
}
diff --git a/content/handlers/text/textplain.c b/content/handlers/text/textplain.c
index 1165bcf5d..c91b81dbd 100644
--- a/content/handlers/text/textplain.c
+++ b/content/handlers/text/textplain.c
@@ -169,7 +169,7 @@ textplain_create_internal(textplain_content *c, lwc_string *encoding)
c->formatted_width = 0;
c->bw = NULL;
- selection_prepare(&c->sel, (struct content *)c, false);
+ selection_prepare(&c->sel, (struct content *)c);
return NSERROR_OK;
@@ -1575,13 +1575,11 @@ static nserror
textplain_create_selection(struct content *c, struct selection **sel_out)
{
struct selection *sel;
- sel = selection_create(c, false);
+ sel = selection_create(c);
if (sel == NULL) {
return NSERROR_NOMEM;
}
- selection_init(sel);
-
*sel_out = sel;
return NSERROR_OK;
}