Loading src/html.cpp +3 −3 Changes for src/html.cpp: 3 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -491,7 +491,7 @@ void libhtmlpp::HtmlElement::appendChild(libhtmlpp::Element* el){ libhtmlpp::Element& libhtmlpp::HtmlElement::operator=(const Element &hel){ Element *dest=nullptr,*prev=nullptr; for(Element *curel=(Element*)&hel; curel; curel=curel->nextElement()){ for(const Element *curel=&hel; curel; curel=curel->nextElement()){ if(curel->_Type==HtmlEl){ dest=new HtmlElement(((HtmlElement*)curel)->_TagName.c_str()); for(Attributes *cattr=((HtmlElement*)curel)->_firstAttr; cattr; cattr=cattr->_nextAttr){ Loading Loading @@ -528,11 +528,11 @@ void libhtmlpp::Element::insertAfter(libhtmlpp::Element* el){ _nextElement=el; } libhtmlpp::Element *libhtmlpp::Element::nextElement(){ libhtmlpp::Element *libhtmlpp::Element::nextElement() const{ return _nextElement; } libhtmlpp::Element *libhtmlpp::Element::prevElement(){ libhtmlpp::Element *libhtmlpp::Element::prevElement() const{ return _prevElement; } Loading src/html.h +2 −2 Changes for src/html.h: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -57,8 +57,8 @@ namespace libhtmlpp { void insertAfter(Element* el); void insertBefore(Element* el); Element* nextElement(); Element* prevElement(); Element* nextElement() const; Element* prevElement() const; int getType(); protected: Loading Loading
src/html.cpp +3 −3 Changes for src/html.cpp: 3 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -491,7 +491,7 @@ void libhtmlpp::HtmlElement::appendChild(libhtmlpp::Element* el){ libhtmlpp::Element& libhtmlpp::HtmlElement::operator=(const Element &hel){ Element *dest=nullptr,*prev=nullptr; for(Element *curel=(Element*)&hel; curel; curel=curel->nextElement()){ for(const Element *curel=&hel; curel; curel=curel->nextElement()){ if(curel->_Type==HtmlEl){ dest=new HtmlElement(((HtmlElement*)curel)->_TagName.c_str()); for(Attributes *cattr=((HtmlElement*)curel)->_firstAttr; cattr; cattr=cattr->_nextAttr){ Loading Loading @@ -528,11 +528,11 @@ void libhtmlpp::Element::insertAfter(libhtmlpp::Element* el){ _nextElement=el; } libhtmlpp::Element *libhtmlpp::Element::nextElement(){ libhtmlpp::Element *libhtmlpp::Element::nextElement() const{ return _nextElement; } libhtmlpp::Element *libhtmlpp::Element::prevElement(){ libhtmlpp::Element *libhtmlpp::Element::prevElement() const{ return _prevElement; } Loading
src/html.h +2 −2 Changes for src/html.h: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -57,8 +57,8 @@ namespace libhtmlpp { void insertAfter(Element* el); void insertBefore(Element* el); Element* nextElement(); Element* prevElement(); Element* nextElement() const; Element* prevElement() const; int getType(); protected: Loading