mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 14:05:51 +00:00
Cleanup.
This commit is contained in:
@@ -142,7 +142,7 @@ STAmount::STAmount(SField::ref n, const Json::Value& v)
|
|||||||
std::vector<std::string> elements;
|
std::vector<std::string> elements;
|
||||||
boost::split(elements, val, boost::is_any_of("\t\n\r ,/"));
|
boost::split(elements, val, boost::is_any_of("\t\n\r ,/"));
|
||||||
|
|
||||||
if ((elements.size() < 0) || (elements.size() > 3))
|
if (elements.size() > 3)
|
||||||
throw std::runtime_error("invalid amount string");
|
throw std::runtime_error("invalid amount string");
|
||||||
|
|
||||||
value = elements[0];
|
value = elements[0];
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ public:
|
|||||||
|
|
||||||
KeyCache(const std::string& name, int size = 0, int age = 120) : mName(name), mTargetSize(size), mTargetAge(age)
|
KeyCache(const std::string& name, int size = 0, int age = 120) : mName(name), mTargetSize(size), mTargetAge(age)
|
||||||
{
|
{
|
||||||
assert((mTargetSize >= 0) && (mTargetAge > 2));
|
assert((size >= 0) && (age > 2));
|
||||||
}
|
}
|
||||||
|
|
||||||
void getSize()
|
void getSize()
|
||||||
|
|||||||
Reference in New Issue
Block a user