mirror of https://github.com/aria2/aria2
2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Use std::make_pair(...) * src/bittorrent_helper.ccpull/1/head
parent
43cd16b4ff
commit
aff9978220
|
@ -1,3 +1,8 @@
|
|||
2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Use std::make_pair(...)
|
||||
* src/bittorrent_helper.cc
|
||||
|
||||
2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
urlencode(removeFragment(...)) in parseUrl(...)
|
||||
|
|
|
@ -819,7 +819,7 @@ std::pair<std::string, uint16_t> unpackcompact(const unsigned char* compact)
|
|||
uint16_t port_nworder;
|
||||
memcpy(&port_nworder, compact+sizeof(uint32_t), sizeof(uint16_t));
|
||||
uint16_t port = ntohs(port_nworder);
|
||||
return std::pair<std::string, uint16_t>(host, port);
|
||||
return std::make_pair(host, port);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue