File tree 3 files changed +7
-3
lines changed
3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,7 @@ namespace detail
23
23
class context_internals
24
24
{
25
25
public:
26
- explicit context_internals (
27
- std::shared_ptr<react_graph> graph = std::make_shared<react_graph>() );
26
+ explicit context_internals ( std::shared_ptr<react_graph> graph = make_react_graph() );
28
27
29
28
UREACT_WARN_UNUSED_RESULT react_graph& get_graph ();
30
29
UREACT_WARN_UNUSED_RESULT const react_graph& get_graph () const ;
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ UREACT_FUNC context get()
52
52
53
53
if ( !graphPtr )
54
54
{
55
- s_instance = graphPtr = std::make_shared< detail::react_graph> ();
55
+ s_instance = graphPtr = detail::make_react_graph ();
56
56
}
57
57
58
58
return context{ std::move ( graphPtr ) };
Original file line number Diff line number Diff line change @@ -430,6 +430,11 @@ UREACT_WARN_UNUSED_RESULT inline bool react_graph::topological_queue::fetch_next
430
430
return !m_next_data.empty ();
431
431
}
432
432
433
+ inline std::shared_ptr<react_graph> make_react_graph ()
434
+ {
435
+ return std::make_shared<react_graph>();
436
+ }
437
+
433
438
} // namespace detail
434
439
435
440
UREACT_END_NAMESPACE
You can’t perform that action at this time.
0 commit comments