diff options
author | HampusM <hampus@hampusmat.com> | 2022-06-29 22:15:36 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-29 22:27:36 +0200 |
commit | 2bff8c999edde11270ecaf6fbd2d24f54d0e360b (patch) | |
tree | 7f879bdd592ba972b195e7fe55bb637f1b3c00b1 /src/bootstrap.cpp | |
parent | d02d46d27982a8e351736067ab9787f87052b989 (diff) |
refactor: cell helper take matrix as shared pointer
Diffstat (limited to 'src/bootstrap.cpp')
-rw-r--r-- | src/bootstrap.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<ICellHelperFactory<char>>().to_factory( - [](const IMatrix<char> &matrix) + [](const std::shared_ptr<IMatrix<char>> &matrix) { return std::make_unique<CellHelper<char>>(matrix); }); |