ソースを参照

2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>

	Defined "[MEMORY]" as static const std::string.
	* src/MemoryBufferPreDownloadHandler.cc (execute)
Tatsuhiro Tsujikawa 17 年 前
コミット
f26d64ce49
2 ファイル変更7 行追加1 行削除
  1. 5 0
      ChangeLog
  2. 2 1
      src/MemoryBufferPreDownloadHandler.cc

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2008-05-15  Tatsuhiro Tsujikawa  <tujikawa at rednoah dot com>
+
+	Defined "[MEMORY]" as static const std::string.
+	* src/MemoryBufferPreDownloadHandler.cc (execute)
+
 2008-05-15  Tatsuhiro Tsujikawa  <tujikawa at rednoah dot com>
 
 	Defined control file's version number as static const std::string.

+ 2 - 1
src/MemoryBufferPreDownloadHandler.cc

@@ -50,7 +50,8 @@ void MemoryBufferPreDownloadHandler::execute(RequestGroup* requestGroup)
   requestGroup->setFileAllocationEnabled(false);
   requestGroup->setPreLocalFileCheckEnabled(false);
 
-  requestGroup->getDownloadContext()->setDir("[MEMORY]");
+  static const std::string DIR_MEMORY("[MEMORY]");
+  requestGroup->getDownloadContext()->setDir(DIR_MEMORY);
 }
 
 } // namespace aria2