summaryrefslogtreecommitdiff
path: root/Rx/v2/src/rxcpp/operators/rx-take_until.hpp
diff options
context:
space:
mode:
authorben <ben@yyls03>2015-02-17 16:26:54 +0800
committerKirk Shoop <kirk.shoop@microsoft.com>2015-04-11 17:07:14 -0700
commitb38a4f085b9abd9dba694964e5bc68e1a92f3fb8 (patch)
tree93aacd17cc849e4e11b08135863fba39b66aab81 /Rx/v2/src/rxcpp/operators/rx-take_until.hpp
parentd65ff1f31e0069bcf8d70023187a47a11fdf5c43 (diff)
downloadRxCpp-b38a4f085b9abd9dba694964e5bc68e1a92f3fb8.tar.gz
Prefer std::make_shared<T> to using std::shared_ptr(new T())
Diffstat (limited to 'Rx/v2/src/rxcpp/operators/rx-take_until.hpp')
-rw-r--r--Rx/v2/src/rxcpp/operators/rx-take_until.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rx/v2/src/rxcpp/operators/rx-take_until.hpp b/Rx/v2/src/rxcpp/operators/rx-take_until.hpp
index e4109cd..422679a 100644
--- a/Rx/v2/src/rxcpp/operators/rx-take_until.hpp
+++ b/Rx/v2/src/rxcpp/operators/rx-take_until.hpp
@@ -77,7 +77,7 @@ struct take_until : public operator_base<T>
auto coordinator = initial.coordination.create_coordinator(s.get_subscription());
// take a copy of the values for each subscription
- auto state = std::shared_ptr<take_until_state_type>(new take_until_state_type(initial, std::move(coordinator), std::move(s)));
+ auto state = std::make_shared<take_until_state_type>(initial, std::move(coordinator), std::move(s));
auto trigger = on_exception(
[&](){return state->coordinator.in(state->trigger);},