[patch]: html.cc: DilloHtmlForm::getCurrentInput()
This refactors DilloHtmlForm code into a new "inline DilloHtmlInput *getCurrentInput()" method. It's just like the earlier patch that created DilloHtml::getCurrentForm() . Comments are welcome, although I hope it is uncontroversial. Regards, Jeremy Henty
This turns DilloHtmlInput into a class and adds a constructor and destructor to manage its data members. Note that DilloHtmlForm::inputs is now a vector of pointers instead of structs. This is consistent with the earlier change to DilloHtml::forms . I think the next task is to move code that accesses DilloHtmlInput internals into DilloHtmlInput methods. In particular, if we can make the type member private we can consider replacing it in favour of a class hierarchy. Comments are welcome, Jeremy Henty
On Tue, May 27, 2008 at 10:43:51AM +0100, Jeremy Henty wrote:
This turns DilloHtmlInput into a class and adds a constructor and destructor to manage its data members. Note that DilloHtmlForm::inputs is now a vector of pointers instead of structs. This is consistent with the earlier change to DilloHtml::forms .
OK. Committed. -- Cheers Jorge.-
participants (2)
-
jcid@dillo.org
-
onepoint@starurchin.org