2010-09-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Use const ref
	* src/MultiUrlRequestInfo.cc
pull/1/head
Tatsuhiro Tsujikawa 2010-09-08 14:39:34 +00:00
parent 32e1aa1b59
commit c51815dd52
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-09-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Use const ref
* src/MultiUrlRequestInfo.cc
2010-09-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net> 2010-09-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed the bug that aria2 reports error and exits with non-zero Fixed the bug that aria2 reports error and exits with non-zero

View File

@ -195,7 +195,7 @@ downloadresultcode::RESULT MultiUrlRequestInfo::execute()
e->getCookieStorage()->saveNsFormat(option_->get(PREF_SAVE_COOKIES)); 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()) { if(!serverStatOf.empty()) {
e->getRequestGroupMan()->saveServerStat(serverStatOf); e->getRequestGroupMan()->saveServerStat(serverStatOf);
} }