From b36d072ad7a7b9c6e30fcb25d6bbb001a8393468 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 10 Apr 2022 17:20:49 +0200 Subject: refactor: add factory class & make DI container return unique ptrs --- src/interfaces/statusline.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/interfaces/statusline.hpp') diff --git a/src/interfaces/statusline.hpp b/src/interfaces/statusline.hpp index f07c1a0..bbd8e4a 100644 --- a/src/interfaces/statusline.hpp +++ b/src/interfaces/statusline.hpp @@ -3,6 +3,8 @@ #include "interfaces/cursor.hpp" #include "interfaces/window.hpp" +#include "DI/factory.hpp" + #include enum StatusLineSection @@ -23,6 +25,6 @@ public: const std::string_view &str) noexcept = 0; }; -using IStatusLineFactory = std::shared_ptr (*)( +using IStatusLineFactory = Factory( const std::shared_ptr &cursor_controller, - const std::shared_ptr &window); + const std::shared_ptr &window)>; -- cgit v1.2.3-18-g5258