diff options
author | jcid <devnull@localhost> | 2008-06-20 20:49:29 +0200 |
---|---|---|
committer | jcid <devnull@localhost> | 2008-06-20 20:49:29 +0200 |
commit | 8dee751cceb7eb4a4a0511df643842dfcd087a24 (patch) | |
tree | 0c3a8a39f19afab1bcf60e4918a536e549e05e6f /src/form.cc | |
parent | 834ac686207d15c988e12dae42e6765b29ecd826 (diff) |
- minor cleanups.
Diffstat (limited to 'src/form.cc')
-rw-r--r-- | src/form.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/form.cc b/src/form.cc index 2b133f33..053e60ad 100644 --- a/src/form.cc +++ b/src/form.cc @@ -180,9 +180,8 @@ public: class DilloHtmlSelect { friend class DilloHtmlInput; -public: - lout::misc::SimpleVector<DilloHtmlOption *> *options; private: + lout::misc::SimpleVector<DilloHtmlOption *> *options; DilloHtmlSelect (); ~DilloHtmlSelect (); public: @@ -1913,10 +1912,8 @@ static void Html_option_finish(DilloHtml *html) DilloHtmlInput *input = form->getCurrentInput (); if (input->type == DILLO_HTML_INPUT_SELECT || input->type == DILLO_HTML_INPUT_SEL_LIST) { - DilloHtmlSelect *select = - input->select; DilloHtmlOption *option = - select->options->get (select->options->size() - 1); + input->select->getCurrentOption (); option->content = a_Html_parse_entities(html, html->Stash->str, html->Stash->len); } |