diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-11-20 09:36:14 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-11-20 09:36:14 +0000 |
| commit | 694fb307aa7e582a55bce7e995bde3a4614b3b4f (patch) | |
| tree | 42bf3e703ebd706c9ebdd62bca59396f2d67a790 /src/DownloadContext.cc | |
| parent | 580098eb4929a3bdbf424af18da361259ef2efe5 (diff) | |
2010-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Replaced StringFormat with fmt
Diffstat (limited to 'src/DownloadContext.cc')
| -rw-r--r-- | src/DownloadContext.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/DownloadContext.cc b/src/DownloadContext.cc index b38ff692..4ff5370c 100644 --- a/src/DownloadContext.cc +++ b/src/DownloadContext.cc @@ -37,7 +37,7 @@ #include <algorithm> #include "FileEntry.h" -#include "StringFormat.h" +#include "fmt.h" #include "util.h" #include "wallclock.h" #include "DlAbortEx.h" @@ -123,8 +123,8 @@ void DownloadContext::setFilePathWithIndex // We don't escape path because path may come from users. fileEntries_[index-1]->setPath(path); } else { - throw DL_ABORT_EX(StringFormat("No such file with index=%u", - static_cast<unsigned int>(index)).str()); + throw DL_ABORT_EX(fmt("No such file with index=%u", + static_cast<unsigned int>(index))); } } @@ -165,7 +165,7 @@ const SharedHandle<ContextAttribute>& DownloadContext::getAttribute std::map<std::string, SharedHandle<ContextAttribute> >::const_iterator itr = attrs_.find(key); if(itr == attrs_.end()) { - throw DL_ABORT_EX(StringFormat("No attribute named %s", key.c_str()).str()); + throw DL_ABORT_EX(fmt("No attribute named %s", key.c_str())); } else { return (*itr).second; } |
