From 694fb307aa7e582a55bce7e995bde3a4614b3b4f Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 20 Nov 2010 09:36:14 +0000 Subject: 2010-11-20 Tatsuhiro Tsujikawa Replaced StringFormat with fmt --- src/HttpResponseCommand.cc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/HttpResponseCommand.cc') diff --git a/src/HttpResponseCommand.cc b/src/HttpResponseCommand.cc index 82ac7333..daea80ba 100644 --- a/src/HttpResponseCommand.cc +++ b/src/HttpResponseCommand.cc @@ -57,7 +57,6 @@ #include "Socket.h" #include "message.h" #include "prefs.h" -#include "StringFormat.h" #include "fmt.h" #include "HttpSkipResponseCommand.h" #include "HttpHeader.h" @@ -88,8 +87,8 @@ SharedHandle getTransferEncodingStreamFilter filter = httpResponse->getTransferEncodingStreamFilter(); if(!filter) { throw DL_ABORT_EX - (StringFormat(EX_TRANSFER_ENCODING_NOT_SUPPORTED, - httpResponse->getTransferEncoding().c_str()).str()); + (fmt(EX_TRANSFER_ENCODING_NOT_SUPPORTED, + httpResponse->getTransferEncoding().c_str())); } filter->init(); filter->installDelegate(delegate); @@ -215,8 +214,8 @@ bool HttpResponseCommand::executeInternal() if(getDownloadEngine()->getRequestGroupMan()-> isSameFileBeingDownloaded(getRequestGroup())) { throw DOWNLOAD_FAILURE_EXCEPTION - (StringFormat(EX_DUPLICATE_FILE_DOWNLOAD, - getRequestGroup()->getFirstFilePath().c_str()).str()); + (fmt(EX_DUPLICATE_FILE_DOWNLOAD, + getRequestGroup()->getFirstFilePath().c_str())); } // update last modified time updateLastModifiedTime(httpResponse->getLastModifiedTime()); -- cgit