summaryrefslogtreecommitdiff
path: root/src/PeerReceiveHandshakeCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-11-20 09:36:14 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-11-20 09:36:14 +0000
commit694fb307aa7e582a55bce7e995bde3a4614b3b4f (patch)
tree42bf3e703ebd706c9ebdd62bca59396f2d67a790 /src/PeerReceiveHandshakeCommand.cc
parent580098eb4929a3bdbf424af18da361259ef2efe5 (diff)
2010-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Replaced StringFormat with fmt
Diffstat (limited to 'src/PeerReceiveHandshakeCommand.cc')
-rw-r--r--src/PeerReceiveHandshakeCommand.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/PeerReceiveHandshakeCommand.cc b/src/PeerReceiveHandshakeCommand.cc
index d2de0ac8..44893be5 100644
--- a/src/PeerReceiveHandshakeCommand.cc
+++ b/src/PeerReceiveHandshakeCommand.cc
@@ -53,7 +53,6 @@
#include "prefs.h"
#include "Option.h"
#include "RequestGroupMan.h"
-#include "StringFormat.h"
#include "fmt.h"
#include "RequestGroup.h"
@@ -97,8 +96,8 @@ bool PeerReceiveHandshakeCommand::executeInternal()
getDownloadEngine()->getBtRegistry()->getDownloadContext(infoHash);
if(!downloadContext) {
throw DL_ABORT_EX
- (StringFormat("Unknown info hash %s",
- util::toHex(infoHash).c_str()).str());
+ (fmt("Unknown info hash %s",
+ util::toHex(infoHash).c_str()));
}
BtObject btObject = getDownloadEngine()->getBtRegistry()->get
(downloadContext->getOwnerRequestGroup()->getGID());
@@ -107,8 +106,8 @@ bool PeerReceiveHandshakeCommand::executeInternal()
SharedHandle<PeerStorage> peerStorage = btObject.peerStorage_;
if(!btRuntime->ready()) {
throw DL_ABORT_EX
- (StringFormat("Unknown info hash %s",
- util::toHex(infoHash).c_str()).str());
+ (fmt("Unknown info hash %s",
+ util::toHex(infoHash).c_str()));
}
if(btRuntime->isHalt()) {
A2_LOG_DEBUG("Info hash found but the download is over."