diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2013-01-03 08:10:25 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2013-01-03 08:10:25 +0000 |
commit | 2853156a2bce535bcaa440c37cf872916f76c03b (patch) | |
tree | 8e161033a9bac8274dcaca05940964b91cdb2bfc /sca-cpp/trunk/components/cache/partitioner.cpp | |
parent | 55607ea78e10832838d52fdb17cbdfe4355c3265 (diff) |
Refactoring, rename isNil to isNull.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1428206 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/components/cache/partitioner.cpp')
-rw-r--r-- | sca-cpp/trunk/components/cache/partitioner.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sca-cpp/trunk/components/cache/partitioner.cpp b/sca-cpp/trunk/components/cache/partitioner.cpp index 8a56a7f932..c7c49c04de 100644 --- a/sca-cpp/trunk/components/cache/partitioner.cpp +++ b/sca-cpp/trunk/components/cache/partitioner.cpp @@ -44,7 +44,7 @@ const failable<list<value> > partition(const value& key, const lvvlambda& select // Call the selector component to convert the given key to a list of partitions const value p = selector(mklist<value>("get", key, partitions)); - if (isNil(p)) { + if (isNull(p)) { ostringstream os; os << "Couldn't get partition: " << key; return mkfailure<list<value> >(str(os), -1, false); @@ -57,12 +57,12 @@ const failable<list<value> > partition(const value& key, const lvvlambda& select * Get lists of items from a list of partitions. */ const failable<list<value> > getlist(const value& key, const list<value>& partitions) { - if (isNil(partitions)) + if (isNull(partitions)) return nilListValue; const lvvlambda l = car(partitions); const value val = l(mklist<value>("get", key)); - if (isNil(val)) + if (isNull(val)) return getlist(key, cdr(partitions)); if (!isList(val)) { ostringstream os; @@ -92,7 +92,7 @@ const failable<value> get(const value& key, const lvvlambda& selector, const lis if (length(p) == 1) { const lvvlambda l = car(p); const value val = l(mklist<value>("get", key)); - if (isNil(val)) { + if (isNull(val)) { ostringstream os; os << "Couldn't get entry from partition: " << key; return mkfailure<value>(str(os), 404, false); |