mirror of https://github.com/aria2/aria2
2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Code cleanup * src/bittorrent_helper.ccpull/1/head
parent
309d292831
commit
1e740c6087
|
@ -1,3 +1,8 @@
|
|||
2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Code cleanup
|
||||
* src/bittorrent_helper.cc
|
||||
|
||||
2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Use C++ style cast
|
||||
|
|
|
@ -496,8 +496,7 @@ void loadFromMemory(const std::string& context,
|
|||
{
|
||||
processRootDictionary
|
||||
(ctx,
|
||||
bencode::decode(reinterpret_cast<const unsigned char*>(context.c_str()),
|
||||
context.size()),
|
||||
bencode::decode(context),
|
||||
defaultName, overrideName,
|
||||
std::deque<std::string>());
|
||||
}
|
||||
|
@ -510,8 +509,7 @@ void loadFromMemory(const std::string& context,
|
|||
{
|
||||
processRootDictionary
|
||||
(ctx,
|
||||
bencode::decode(reinterpret_cast<const unsigned char*>(context.c_str()),
|
||||
context.size()),
|
||||
bencode::decode(context),
|
||||
defaultName, overrideName,
|
||||
uris);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue