summaryrefslogtreecommitdiff
path: root/src/UTPexExtensionMessage.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/UTPexExtensionMessage.cc
parent580098eb4929a3bdbf424af18da361259ef2efe5 (diff)
2010-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Replaced StringFormat with fmt
Diffstat (limited to 'src/UTPexExtensionMessage.cc')
-rw-r--r--src/UTPexExtensionMessage.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/UTPexExtensionMessage.cc b/src/UTPexExtensionMessage.cc
index 261fe331..67a1a0dc 100644
--- a/src/UTPexExtensionMessage.cc
+++ b/src/UTPexExtensionMessage.cc
@@ -39,7 +39,7 @@
#include "PeerStorage.h"
#include "DlAbortEx.h"
#include "message.h"
-#include "StringFormat.h"
+#include "fmt.h"
#include "bencode2.h"
#include "a2functional.h"
#include "wallclock.h"
@@ -175,9 +175,9 @@ UTPexExtensionMessageHandle
UTPexExtensionMessage::create(const unsigned char* data, size_t len)
{
if(len < 1) {
- throw DL_ABORT_EX(StringFormat(MSG_TOO_SMALL_PAYLOAD_SIZE,
- EXTENSION_NAME.c_str(),
- static_cast<unsigned long>(len)).str());
+ throw DL_ABORT_EX(fmt(MSG_TOO_SMALL_PAYLOAD_SIZE,
+ EXTENSION_NAME.c_str(),
+ static_cast<unsigned long>(len)));
}
UTPexExtensionMessageHandle msg(new UTPexExtensionMessage(*data));