2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Fixed compile error with intel compiler
	* src/XmlRpcMethodImpl.cc
	* src/XmlRpcMethodImpl.h
pull/1/head
Tatsuhiro Tsujikawa 2010-01-24 12:49:58 +00:00
parent e71b7e8067
commit 46605f66c3
3 changed files with 16 additions and 13 deletions

View File

@ -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

View File

@ -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
{

View File

@ -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)
{