Fix bad optional reference.
The client calls still take pointers, for now. We'll get there... There's a lot to convert.
This commit is contained in:
@ -475,7 +475,7 @@ void Html_tag_open_input(DilloHtml *html, const char *tag, int tagsize)
|
||||
placeholder = a_Html_get_attr_wdef(html, tag,tagsize,"placeholder",NULL);
|
||||
attrbuf = a_Html_get_attr(html, tag, tagsize, "size");
|
||||
int size = Html_input_get_size(html, attrbuf);
|
||||
resource = factory->createEntryResource (size, true, NULL, placeholder.value().c_str());
|
||||
resource = factory->createEntryResource (size, true, NULL, placeholder ? placeholder.value().c_str() : nullptr);
|
||||
init_str = value;
|
||||
} else if (!dStrAsciiCasecmp(type.value().c_str(), "checkbox")) {
|
||||
inp_type = DILLO_HTML_INPUT_CHECKBOX;
|
||||
@ -551,7 +551,7 @@ void Html_tag_open_input(DilloHtml *html, const char *tag, int tagsize)
|
||||
placeholder = a_Html_get_attr_wdef(html, tag,tagsize,"placeholder",NULL);
|
||||
attrbuf = a_Html_get_attr(html, tag, tagsize, "size");
|
||||
int size = Html_input_get_size(html, attrbuf);
|
||||
resource = factory->createEntryResource(size, false, NULL, placeholder.value().c_str());
|
||||
resource = factory->createEntryResource(size, false, NULL, placeholder ? placeholder.value().c_str() : nullptr);
|
||||
init_str = value;
|
||||
}
|
||||
if (resource)
|
||||
|
Reference in New Issue
Block a user