diff options
author | Andrei Lebedev <lebdron@gmail.com> | 2018-07-08 18:36:26 +0300 |
---|---|---|
committer | Kirk Shoop <kirk.shoop@gmail.com> | 2018-07-08 12:08:25 -0700 |
commit | 0b93c186708460962d5f47414fe80b289a24bbe1 (patch) | |
tree | 71eebaf2d55b85875a6cc2280636a9cf98bca0d8 | |
parent | ce5dfc2fdd49693cd109a5f5470b73e982c33f35 (diff) | |
download | RxCpp-0b93c186708460962d5f47414fe80b289a24bbe1.tar.gz |
Remove static from observe_on_run_loop
- Different run loops can be used with factory calls
-rw-r--r-- | Rx/v2/src/rxcpp/operators/rx-observe_on.hpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Rx/v2/src/rxcpp/operators/rx-observe_on.hpp b/Rx/v2/src/rxcpp/operators/rx-observe_on.hpp index 99de4c3..274f3f1 100644 --- a/Rx/v2/src/rxcpp/operators/rx-observe_on.hpp +++ b/Rx/v2/src/rxcpp/operators/rx-observe_on.hpp @@ -316,8 +316,7 @@ public: }; inline observe_on_one_worker observe_on_run_loop(const rxsc::run_loop& rl) { - static observe_on_one_worker r(rxsc::make_run_loop(rl)); - return r; + return observe_on_one_worker(rxsc::make_run_loop(rl)); } inline observe_on_one_worker observe_on_event_loop() { |