From c51815dd5294dde6bc942738443ae5b01ff22118 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 8 Sep 2010 14:39:34 +0000 Subject: [PATCH] 2010-09-08 Tatsuhiro Tsujikawa Use const ref * src/MultiUrlRequestInfo.cc --- ChangeLog | 5 +++++ src/MultiUrlRequestInfo.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 73f5483f..a59c3947 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-09-08 Tatsuhiro Tsujikawa + + Use const ref + * src/MultiUrlRequestInfo.cc + 2010-09-08 Tatsuhiro Tsujikawa Fixed the bug that aria2 reports error and exits with non-zero diff --git a/src/MultiUrlRequestInfo.cc b/src/MultiUrlRequestInfo.cc index 7baf11c1..5dbadaf7 100644 --- a/src/MultiUrlRequestInfo.cc +++ b/src/MultiUrlRequestInfo.cc @@ -195,7 +195,7 @@ downloadresultcode::RESULT MultiUrlRequestInfo::execute() e->getCookieStorage()->saveNsFormat(option_->get(PREF_SAVE_COOKIES)); } - std::string serverStatOf = option_->get(PREF_SERVER_STAT_OF); + const std::string& serverStatOf = option_->get(PREF_SERVER_STAT_OF); if(!serverStatOf.empty()) { e->getRequestGroupMan()->saveServerStat(serverStatOf); }