Loading src/html.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -1603,10 +1603,10 @@ void libhtmlpp::HtmlElement::setAttribute(const std::string &name, const std::st } cattr = _lastAttr; cattr->_Key.resize(name.length()); std::copy(name.begin(),name.end(),std::insert_iterator<std::vector<char>>(cattr->_Key,cattr->_Key.begin()) ); std::copy(name.begin(),name.end(),cattr->_Key.begin() ); } cattr->_Value.resize(value.length()); std::copy(value.begin(),value.end(),std::insert_iterator<std::vector<char>>(cattr->_Value ,cattr->_Value .begin()) ); std::copy(value.begin(),value.end(),cattr->_Value.begin()); } void libhtmlpp::HtmlElement::setIntAttribute(const std::string& name, int value) { Loading Loading
src/html.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -1603,10 +1603,10 @@ void libhtmlpp::HtmlElement::setAttribute(const std::string &name, const std::st } cattr = _lastAttr; cattr->_Key.resize(name.length()); std::copy(name.begin(),name.end(),std::insert_iterator<std::vector<char>>(cattr->_Key,cattr->_Key.begin()) ); std::copy(name.begin(),name.end(),cattr->_Key.begin() ); } cattr->_Value.resize(value.length()); std::copy(value.begin(),value.end(),std::insert_iterator<std::vector<char>>(cattr->_Value ,cattr->_Value .begin()) ); std::copy(value.begin(),value.end(),cattr->_Value.begin()); } void libhtmlpp::HtmlElement::setIntAttribute(const std::string& name, int value) { Loading