From 386d19693bc3b06bea14f8fa606f513b6fe1ac9d Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 13 May 2008 14:15:23 +0000 Subject: 2008-05-13 Tatsuhiro Tsujikawa Replaced "" with static const variable A2STR::NIL. Replaced string comparison against "" with std::string::empty(). Added PROTO_* to Request class and use them as a protocol string constant. Made "started", "stopped", "completed" static const variable in AnnounceList class. --- src/HttpHeaderProcessor.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/HttpHeaderProcessor.cc') diff --git a/src/HttpHeaderProcessor.cc b/src/HttpHeaderProcessor.cc index 4bfb570e..9dec5099 100644 --- a/src/HttpHeaderProcessor.cc +++ b/src/HttpHeaderProcessor.cc @@ -38,6 +38,7 @@ #include "Util.h" #include "DlRetryEx.h" #include "DlAbortEx.h" +#include "A2STR.h" namespace aria2 { @@ -90,7 +91,7 @@ size_t HttpHeaderProcessor::getPutBackDataLength() const void HttpHeaderProcessor::clear() { - strm.str(""); + strm.str(A2STR::NIL); } SharedHandle HttpHeaderProcessor::getHttpResponseHeader() -- cgit