diff options
Diffstat (limited to 'cpp/sca/test')
-rw-r--r-- | cpp/sca/test/store-function/cart.hpp | 3 | ||||
-rw-r--r-- | cpp/sca/test/store-object/cart.hpp | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/cpp/sca/test/store-function/cart.hpp b/cpp/sca/test/store-function/cart.hpp index f3b0f6195e..9ed6474985 100644 --- a/cpp/sca/test/store-function/cart.hpp +++ b/cpp/sca/test/store-function/cart.hpp @@ -50,8 +50,7 @@ const bool shoppingCart_deleteAll() { } const double shoppingCart_getTotal() { - tuscany::lambda<double(double, ItemType)> a(accumTotal); - return reduce(a, 0.0, cart); + return tuscany::reduce<ItemType, double>(accumTotal, 0.0, cart); } const tuscany::value shoppingCart_service(const tuscany::list<tuscany::value>& args) { diff --git a/cpp/sca/test/store-object/cart.hpp b/cpp/sca/test/store-object/cart.hpp index fc6155aa25..f35a5c4527 100644 --- a/cpp/sca/test/store-object/cart.hpp +++ b/cpp/sca/test/store-object/cart.hpp @@ -66,8 +66,7 @@ public: } virtual const double getTotal() const { - tuscany::lambda<double(double, Item)> a(accum); - return reduce(a, 0.0, cart); + return tuscany::reduce<Item, double>(accum, 0.0, cart); } }; |