2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Code cleanup
	* src/bittorrent_helper.cc
pull/1/head
Tatsuhiro Tsujikawa 2009-11-15 12:59:44 +00:00
parent 309d292831
commit 1e740c6087
2 changed files with 7 additions and 4 deletions

View File

@ -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

View File

@ -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);
}