mirror of https://github.com/aria2/aria2
2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed compile error with intel compiler * src/XmlRpcMethodImpl.cc * src/XmlRpcMethodImpl.hpull/1/head
parent
e71b7e8067
commit
46605f66c3
|
@ -1,3 +1,9 @@
|
|||
2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Fixed compile error with intel compiler
|
||||
* src/XmlRpcMethodImpl.cc
|
||||
* src/XmlRpcMethodImpl.h
|
||||
|
||||
2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Release 1.8.1
|
||||
|
|
|
@ -608,18 +608,6 @@ BDE TellActiveXmlRpcMethod::process
|
|||
return list;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
void AbstractPaginationXmlRpcMethod<T>::checkPaginationParams
|
||||
(const BDE& params) const
|
||||
{
|
||||
assert(params.isList());
|
||||
if(params.size() != 2 ||
|
||||
!params[0].isInteger() || !params[1].isInteger() ||
|
||||
params[1].i() < 0) {
|
||||
throw DL_ABORT_EX("Invalid argument. Specify offset and num in integer.");
|
||||
}
|
||||
}
|
||||
|
||||
const std::deque<SharedHandle<RequestGroup> >&
|
||||
TellWaitingXmlRpcMethod::getItems(DownloadEngine* e) const
|
||||
{
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
|
||||
#include "XmlRpcMethod.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <deque>
|
||||
#include <algorithm>
|
||||
|
||||
|
@ -201,7 +202,15 @@ private:
|
|||
return std::make_pair(first, last);
|
||||
}
|
||||
|
||||
void checkPaginationParams(const BDE& params) const;
|
||||
void checkPaginationParams(const BDE& params) const
|
||||
{
|
||||
assert(params.isList());
|
||||
if(params.size() != 2 ||
|
||||
!params[0].isInteger() || !params[1].isInteger() ||
|
||||
params[1].i() < 0) {
|
||||
throw DL_ABORT_EX("Invalid argument. Specify offset and num in integer.");
|
||||
}
|
||||
}
|
||||
protected:
|
||||
virtual BDE process(const XmlRpcRequest& req, DownloadEngine* e)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue