From 35b219ddc82a3f68bcf89d672481485092cdd1ef Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 14 May 2008 15:22:52 +0000 Subject: [PATCH] 2008-05-15 Tatsuhiro Tsujikawa Defined fake filename `[tracker.announce]' as static const std::string. * src/TrackerWatcherCommand.cc (createRequestGroup) --- ChangeLog | 5 +++++ src/TrackerWatcherCommand.cc | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3e8c6b5b..56714d25 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-05-15 Tatsuhiro Tsujikawa + + Defined fake filename `[tracker.announce]' as static const std::string. + * src/TrackerWatcherCommand.cc (createRequestGroup) + 2008-05-15 Tatsuhiro Tsujikawa Defined default filename `index.html' as static const std::string diff --git a/src/TrackerWatcherCommand.cc b/src/TrackerWatcherCommand.cc index 537ca385..ba775274 100644 --- a/src/TrackerWatcherCommand.cc +++ b/src/TrackerWatcherCommand.cc @@ -174,11 +174,12 @@ TrackerWatcherCommand::createRequestGroup(const std::string& uri) uris.push_back(uri); RequestGroupHandle rg(new RequestGroup(e->option, uris)); + static const std::string TRACKER_ANNOUNCE_FILE("[tracker.announce]"); SingleFileDownloadContextHandle dctx (new SingleFileDownloadContext(e->option->getAsInt(PREF_SEGMENT_SIZE), 0, A2STR::NIL, - "[tracker.announce]")); + TRACKER_ANNOUNCE_FILE)); dctx->setDir(A2STR::NIL); rg->setDownloadContext(dctx); SharedHandle dwf(new ByteArrayDiskWriterFactory());