From 2bff8c999edde11270ecaf6fbd2d24f54d0e360b Mon Sep 17 00:00:00 2001 From: HampusM Date: Wed, 29 Jun 2022 22:15:36 +0200 Subject: refactor: cell helper take matrix as shared pointer --- src/bootstrap.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/bootstrap.cpp') diff --git a/src/bootstrap.cpp b/src/bootstrap.cpp index 368f2a8..b8649ec 100644 --- a/src/bootstrap.cpp +++ b/src/bootstrap.cpp @@ -73,7 +73,7 @@ auto bootstrap() noexcept -> yacppdic::DIContainer generation_tracker, status_manager, user_input_observer, - cell_helper_factory(*(scene->get_matrix())), + cell_helper_factory(scene->get_matrix()), rle_reader); }); @@ -105,7 +105,7 @@ auto bootstrap() noexcept -> yacppdic::DIContainer }); di_container.bind>().to_factory( - [](const IMatrix &matrix) + [](const std::shared_ptr> &matrix) { return std::make_unique>(matrix); }); -- cgit v1.2.3-18-g5258