diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-01-24 12:49:58 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-01-24 12:49:58 +0000 |
| commit | 46605f66c354a2cd0c75fe0a085cfb6028e08c19 (patch) | |
| tree | 4b6f6ec2eea70f5ab77e0e1ea74ab14c71c46609 /src | |
| parent | e71b7e8067cad99018e393c8547d5b15059b92f2 (diff) | |
2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed compile error with intel compiler
* src/XmlRpcMethodImpl.cc
* src/XmlRpcMethodImpl.h
Diffstat (limited to 'src')
| -rw-r--r-- | src/XmlRpcMethodImpl.cc | 12 | ||||
| -rw-r--r-- | src/XmlRpcMethodImpl.h | 11 |
2 files changed, 10 insertions, 13 deletions
diff --git a/src/XmlRpcMethodImpl.cc b/src/XmlRpcMethodImpl.cc index 7618ecdb..011d20e0 100644 --- a/src/XmlRpcMethodImpl.cc +++ b/src/XmlRpcMethodImpl.cc @@ -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 { diff --git a/src/XmlRpcMethodImpl.h b/src/XmlRpcMethodImpl.h index f057d3c7..45d3f758 100644 --- a/src/XmlRpcMethodImpl.h +++ b/src/XmlRpcMethodImpl.h @@ -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) { |
