SashaOcheev / OOP

0 stars 0 forks source link

Замечания по CHttpURL #9

Open alexey-malov opened 7 years ago

alexey-malov commented 7 years ago
alexey-malov commented 7 years ago

http://www.dns-sd.org/trailingdotsindomainnames.html

alexey-malov commented 7 years ago
2>c:\teaching\2016\old\ocheev\oop\lab6\urlparse\test\httpurltest.cpp(206): warning C4002: too many actual parameters for macro 'BOOST_CHECK_THROW'
alexey-malov commented 7 years ago
alexey-malov commented 7 years ago
alexey-malov commented 7 years ago
void CHttpUrl::Init(std::string const & domain, std::string const & document, Protocol protocol, unsigned short port)
{
    auto newDomain = GetCorrectDomain(domain);
    auto newDocument = GetCorrectDocument(document);
    std::swap(m_domain, newDomain);
    std::swap(m_document, newDocument);
    m_protocol = protocol;
    std::swap(m_port, port);
}