From 1e740c6087de11583f38ded9eab1e7f2b4b19245 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 15 Nov 2009 12:59:44 +0000 Subject: [PATCH] 2009-11-15 Tatsuhiro Tsujikawa Code cleanup * src/bittorrent_helper.cc --- ChangeLog | 5 +++++ src/bittorrent_helper.cc | 6 ++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 52dd48fd..4045e1ca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-11-15 Tatsuhiro Tsujikawa + + Code cleanup + * src/bittorrent_helper.cc + 2009-11-15 Tatsuhiro Tsujikawa Use C++ style cast diff --git a/src/bittorrent_helper.cc b/src/bittorrent_helper.cc index 8d0131a4..68ebb915 100644 --- a/src/bittorrent_helper.cc +++ b/src/bittorrent_helper.cc @@ -496,8 +496,7 @@ void loadFromMemory(const std::string& context, { processRootDictionary (ctx, - bencode::decode(reinterpret_cast(context.c_str()), - context.size()), + bencode::decode(context), defaultName, overrideName, std::deque()); } @@ -510,8 +509,7 @@ void loadFromMemory(const std::string& context, { processRootDictionary (ctx, - bencode::decode(reinterpret_cast(context.c_str()), - context.size()), + bencode::decode(context), defaultName, overrideName, uris); }